@Only-api
@Post
@Get
@Delete
@Organization
Feature: Organization resource actions
Description: This feature checks the patient resource actions, get, post and delete made on FHIR specific Organization node. This resource is part of the Diagnosis.
File name: xaf.feature
Relative path: api/xaf.feature
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:26.223 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:26.849 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:26.849 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oZGA9si0bLklRm0q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14322/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14322/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:26.849 [print] {
"resourceType": "Organization",
"id": "14322",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:31.526+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:26.849 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:26.851 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:26.851 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oZGA9si0bLklRm0q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14322/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14322/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:26.851 [print] {
"resourceType": "Organization",
"id": "14322",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:31.526+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:26.851 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:27.425 [print] {
"resourceType": "Organization",
"id": "14322",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:31.526+02:00",
"source": "#oZGA9si0bLklRm0q",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:28.088 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:28.657 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:32.766+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:32.766+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:28.657 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:29.257 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:29.257 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gJopgub1s5ObZUsQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14323/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14323/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:29.257 [print] {
"resourceType": "Organization",
"id": "14323",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:33.934+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:29.257 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:29.257 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:29.257 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gJopgub1s5ObZUsQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14323/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14323/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:29.257 [print] {
"resourceType": "Organization",
"id": "14323",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:33.934+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:29.257 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:29.847 [print] {
"resourceType": "Organization",
"id": "14323",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:33.934+02:00",
"source": "#gJopgub1s5ObZUsQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:30.516 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:31.157 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:35.194+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:35.194+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:31.157 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:31.893 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:31.893 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TimMSGje2pLro4D6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14324/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14324/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:31.893 [print] {
"resourceType": "Organization",
"id": "14324",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:36.559+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:31.893 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:31.893 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:31.893 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TimMSGje2pLro4D6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14324/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14324/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:31.893 [print] {
"resourceType": "Organization",
"id": "14324",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:36.559+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:31.893 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:32.557 [print] {
"resourceType": "Organization",
"id": "14324",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:36.559+02:00",
"source": "#TimMSGje2pLro4D6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:33.289 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:33.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:37.971+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:37.971+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:33.902 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:34.517 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:34.517 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Qp6O2BqiJ5Fn2c0N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14325/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14325/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:34.517 [print] {
"resourceType": "Organization",
"id": "14325",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:39.194+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:34.517 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:34.517 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:34.517 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Qp6O2BqiJ5Fn2c0N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14325/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14325/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:34.517 [print] {
"resourceType": "Organization",
"id": "14325",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:39.194+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:34.517 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:35.121 [print] {
"resourceType": "Organization",
"id": "14325",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:39.194+02:00",
"source": "#Qp6O2BqiJ5Fn2c0N",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:35.738 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:36.370 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:40.422+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:40.422+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:36.372 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:37.174 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:37.174 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K2EPpt8tm4dzZv5P"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14326/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14326/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:37.174 [print] {
"resourceType": "Organization",
"id": "14326",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:41.831+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:37.174 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:37.176 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:37.176 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K2EPpt8tm4dzZv5P"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14326/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14326/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:37.176 [print] {
"resourceType": "Organization",
"id": "14326",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:41.831+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:37.176 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:37.786 [print] {
"resourceType": "Organization",
"id": "14326",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:41.831+02:00",
"source": "#K2EPpt8tm4dzZv5P",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:38.409 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:39.025 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:43.093+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:43.093+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:39.025 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:39.678 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:39.678 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0o8vEd3i6q4hli65"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14327/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14327/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:39.678 [print] {
"resourceType": "Organization",
"id": "14327",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:44.355+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:39.678 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:39.678 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:39.678 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0o8vEd3i6q4hli65"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14327/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14327/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:39.678 [print] {
"resourceType": "Organization",
"id": "14327",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:44.355+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:39.678 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:40.285 [print] {
"resourceType": "Organization",
"id": "14327",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:44.355+02:00",
"source": "#0o8vEd3i6q4hli65",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:40.910 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:41.994 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:45.594+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:45.594+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:41.994 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:42.649 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:42.649 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"escvOgVLT51XgwQP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14328/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14328/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:42.649 [print] {
"resourceType": "Organization",
"id": "14328",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:47.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:42.649 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:42.649 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:42.649 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"escvOgVLT51XgwQP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14328/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14328/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:42.649 [print] {
"resourceType": "Organization",
"id": "14328",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:47.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:42.649 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:43.241 [print] {
"resourceType": "Organization",
"id": "14328",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:47.328+02:00",
"source": "#escvOgVLT51XgwQP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:43.874 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:44.458 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:48.563+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:48.563+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:44.458 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:45.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:45.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qj6vr0pQidQCgLha"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14329/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14329/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:45.138 [print] {
"resourceType": "Organization",
"id": "14329",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:49.805+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:45.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:45.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:45.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qj6vr0pQidQCgLha"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14329/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14329/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:45.138 [print] {
"resourceType": "Organization",
"id": "14329",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:49.805+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:45.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:45.774 [print] {
"resourceType": "Organization",
"id": "14329",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:49.805+02:00",
"source": "#qj6vr0pQidQCgLha",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:46.398 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:47.017 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:51.078+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:51.078+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:47.017 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:47.689 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:47.689 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LAGnkZvDk8Ixce2S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14330/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14330/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:47.689 [print] {
"resourceType": "Organization",
"id": "14330",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:52.375+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:47.689 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:47.689 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:47.689 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LAGnkZvDk8Ixce2S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14330/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14330/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:47.689 [print] {
"resourceType": "Organization",
"id": "14330",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:52.375+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:47.689 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:48.298 [print] {
"resourceType": "Organization",
"id": "14330",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:52.375+02:00",
"source": "#LAGnkZvDk8Ixce2S",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:48.893 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:49.479 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:53.568+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:53.568+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:49.480 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:50.090 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:50.090 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4Cdc5XuldhxkdJyy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14331/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14331/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:50.090 [print] {
"resourceType": "Organization",
"id": "14331",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:54.768+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:50.090 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:50.093 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:50.093 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4Cdc5XuldhxkdJyy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14331/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14331/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:50.093 [print] {
"resourceType": "Organization",
"id": "14331",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:54.768+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:50.093 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:50.680 [print] {
"resourceType": "Organization",
"id": "14331",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:54.768+02:00",
"source": "#4Cdc5XuldhxkdJyy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:51.307 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:51.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:55.996+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:55.996+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:51.901 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:53.542 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:53.542 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BecHthlbtOdGOaDo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14332/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14332/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:53.542 [print] {
"resourceType": "Organization",
"id": "14332",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:58.218+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:53.542 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:53.544 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:53.544 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BecHthlbtOdGOaDo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14332/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:54:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14332/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:54:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:53.544 [print] {
"resourceType": "Organization",
"id": "14332",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:58.218+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:53.544 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:54.114 [print] {
"resourceType": "Organization",
"id": "14332",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:54:58.218+02:00",
"source": "#BecHthlbtOdGOaDo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:54.748 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:55.363 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:54:59.422+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:54:59.422+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:55.365 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:56.010 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:56.010 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BnX6COQqjibzCOnm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14333/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14333/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:56.010 [print] {
"resourceType": "Organization",
"id": "14333",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:00.682+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:56.010 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:56.027 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:56.027 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BnX6COQqjibzCOnm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14333/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14333/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:56.027 [print] {
"resourceType": "Organization",
"id": "14333",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:00.682+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:56.027 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:56.653 [print] {
"resourceType": "Organization",
"id": "14333",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:00.682+02:00",
"source": "#BnX6COQqjibzCOnm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:57.267 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:54:57.889 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:01.949+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:01.949+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:54:57.905 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:58.474 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:58.474 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ppKSXjrzfqSLaRSK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14334/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14334/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:58.474 [print] {
"resourceType": "Organization",
"id": "14334",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:03.162+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:58.474 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:54:58.490 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:54:58.490 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ppKSXjrzfqSLaRSK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14334/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14334/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:54:58.490 [print] {
"resourceType": "Organization",
"id": "14334",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:03.162+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
> *
print COOKIES
09:54:58.490 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:54:59.073 [print] {
"resourceType": "Organization",
"id": "14334",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:03.162+02:00",
"source": "#ppKSXjrzfqSLaRSK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:54:59.880 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:00.522 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:04.568+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:04.568+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:00.522 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:01.459 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:01.459 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RJkgLVMrVmE0fbEZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14335/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14335/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:01.459 [print] {
"resourceType": "Organization",
"id": "14335",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:06.130+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:01.460 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:01.461 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:01.462 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RJkgLVMrVmE0fbEZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14335/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14335/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:01.462 [print] {
"resourceType": "Organization",
"id": "14335",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:06.130+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:01.462 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:02.090 [print] {
"resourceType": "Organization",
"id": "14335",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:06.130+02:00",
"source": "#RJkgLVMrVmE0fbEZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:02.666 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:04.527 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:07.351+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:07.351+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:04.529 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:05.154 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"392"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:05.154 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lKTDzS9TaIdZT1Mr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14336/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14336/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:05.154 [print] {
"resourceType": "Organization",
"id": "14336",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:09.834+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:05.154 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:05.155 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"392"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:05.155 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lKTDzS9TaIdZT1Mr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14336/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14336/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:05.155 [print] {
"resourceType": "Organization",
"id": "14336",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:09.834+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:05.155 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:05.727 [print] {
"resourceType": "Organization",
"id": "14336",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:09.834+02:00",
"source": "#lKTDzS9TaIdZT1Mr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:06.376 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:06.956 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:11.040+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:11.040+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:06.956 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:07.643 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:07.643 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bhl7y4WYBetB2Zgr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14337/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14337/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:07.643 [print] {
"resourceType": "Organization",
"id": "14337",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:12.302+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:07.643 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:07.644 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:07.644 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bhl7y4WYBetB2Zgr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14337/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14337/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:07.644 [print] {
"resourceType": "Organization",
"id": "14337",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:12.302+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:07.644 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:08.435 [print] {
"resourceType": "Organization",
"id": "14337",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:12.302+02:00",
"source": "#Bhl7y4WYBetB2Zgr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:09.004 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:09.573 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:13.694+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:13.694+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:09.573 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:10.194 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:10.194 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JLKldY0T2WZeKUCO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14338/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14338/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:10.194 [print] {
"resourceType": "Organization",
"id": "14338",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:14.870+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:10.194 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:10.196 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:10.196 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JLKldY0T2WZeKUCO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14338/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14338/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:10.196 [print] {
"resourceType": "Organization",
"id": "14338",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:14.870+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:10.196 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:11.042 [print] {
"resourceType": "Organization",
"id": "14338",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:14.870+02:00",
"source": "#JLKldY0T2WZeKUCO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:11.639 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:12.239 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:16.322+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:16.322+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:12.239 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:12.840 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:12.840 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"miYRwXxVPNZYO50T"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14339/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14339/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:12.840 [print] {
"resourceType": "Organization",
"id": "14339",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:17.521+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:12.840 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:12.840 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:12.840 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"miYRwXxVPNZYO50T"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14339/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14339/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:12.840 [print] {
"resourceType": "Organization",
"id": "14339",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:17.521+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:12.840 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:13.505 [print] {
"resourceType": "Organization",
"id": "14339",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:17.521+02:00",
"source": "#miYRwXxVPNZYO50T",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:14.137 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:14.733 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:18.827+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:18.827+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:14.734 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:15.306 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:15.306 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fhrolj8CPFiu4YoN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14340/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14340/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:15.306 [print] {
"resourceType": "Organization",
"id": "14340",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:19.989+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:15.306 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:15.306 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:15.306 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fhrolj8CPFiu4YoN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14340/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14340/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:15.306 [print] {
"resourceType": "Organization",
"id": "14340",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:19.989+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:15.306 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:16.200 [print] {
"resourceType": "Organization",
"id": "14340",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:19.989+02:00",
"source": "#fhrolj8CPFiu4YoN",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:16.856 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:17.439 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:21.540+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:21.540+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:17.439 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:18.023 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:18.023 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ETraFPDymMZhblQH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14341/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14341/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:18.023 [print] {
"resourceType": "Organization",
"id": "14341",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:22.713+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:18.023 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:18.023 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:18.023 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ETraFPDymMZhblQH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14341/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14341/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:18.023 [print] {
"resourceType": "Organization",
"id": "14341",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:22.713+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:18.023 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:18.636 [print] {
"resourceType": "Organization",
"id": "14341",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:22.713+02:00",
"source": "#ETraFPDymMZhblQH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:19.240 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:19.886 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:23.930+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:23.930+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:19.887 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:20.472 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:20.472 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"X9fHJO7HLwid3pmG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14342/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14342/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:20.472 [print] {
"resourceType": "Organization",
"id": "14342",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:25.146+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:20.472 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:20.472 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:20.472 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"X9fHJO7HLwid3pmG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14342/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14342/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:20.472 [print] {
"resourceType": "Organization",
"id": "14342",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:25.146+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:20.472 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:21.088 [print] {
"resourceType": "Organization",
"id": "14342",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:25.146+02:00",
"source": "#X9fHJO7HLwid3pmG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:21.681 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:22.302 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:26.358+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:26.358+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:22.304 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:30.906 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:30.906 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YWZd9jSoa9Vt8fMu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14343/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14343/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:30.906 [print] {
"resourceType": "Organization",
"id": "14343",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:35.579+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:30.906 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:30.906 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:30.906 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YWZd9jSoa9Vt8fMu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14343/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14343/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:30.906 [print] {
"resourceType": "Organization",
"id": "14343",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:35.579+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:30.906 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:31.507 [print] {
"resourceType": "Organization",
"id": "14343",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:35.579+02:00",
"source": "#YWZd9jSoa9Vt8fMu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:32.095 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:32.682 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:36.783+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:36.783+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:32.682 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:33.569 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:33.569 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jvtQIOIM73qVYP4d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14344/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14344/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:33.569 [print] {
"resourceType": "Organization",
"id": "14344",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:38.250+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:33.569 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:33.569 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:33.569 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jvtQIOIM73qVYP4d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14344/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14344/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:33.569 [print] {
"resourceType": "Organization",
"id": "14344",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:38.250+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:33.569 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:34.175 [print] {
"resourceType": "Organization",
"id": "14344",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:38.250+02:00",
"source": "#jvtQIOIM73qVYP4d",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:34.799 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:35.421 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:39.479+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:39.479+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:35.421 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:36.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:36.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OcbtayncW1fzkrtr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14345/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14345/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:36.105 [print] {
"resourceType": "Organization",
"id": "14345",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:40.782+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:36.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:36.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:36.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OcbtayncW1fzkrtr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14345/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14345/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:36.105 [print] {
"resourceType": "Organization",
"id": "14345",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:40.782+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:36.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:36.723 [print] {
"resourceType": "Organization",
"id": "14345",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:40.782+02:00",
"source": "#OcbtayncW1fzkrtr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:37.352 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:37.987 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:42.031+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:42.031+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:37.987 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:38.628 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:38.628 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J4WW80HFyMS1LdLN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14346/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14346/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:38.628 [print] {
"resourceType": "Organization",
"id": "14346",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:43.303+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:38.628 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:38.630 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:38.630 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J4WW80HFyMS1LdLN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14346/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14346/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:38.630 [print] {
"resourceType": "Organization",
"id": "14346",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:43.303+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:38.630 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:39.263 [print] {
"resourceType": "Organization",
"id": "14346",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:43.303+02:00",
"source": "#J4WW80HFyMS1LdLN",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:39.853 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:40.472 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:44.536+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:44.536+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:40.472 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:41.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:41.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HqfifKDxcJqsTFY7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14347/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14347/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:41.105 [print] {
"resourceType": "Organization",
"id": "14347",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:45.783+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:41.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:41.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:41.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HqfifKDxcJqsTFY7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14347/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14347/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:41.105 [print] {
"resourceType": "Organization",
"id": "14347",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:45.783+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:41.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:41.705 [print] {
"resourceType": "Organization",
"id": "14347",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:45.783+02:00",
"source": "#HqfifKDxcJqsTFY7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:42.302 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:42.872 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:46.984+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:46.984+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:42.872 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:43.453 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:43.453 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tNur5IMps6HK5oML"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14348/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14348/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:43.453 [print] {
"resourceType": "Organization",
"id": "14348",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:48.132+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:43.453 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:43.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:43.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tNur5IMps6HK5oML"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14348/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14348/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:43.455 [print] {
"resourceType": "Organization",
"id": "14348",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:48.132+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:43.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:44.072 [print] {
"resourceType": "Organization",
"id": "14348",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:48.132+02:00",
"source": "#tNur5IMps6HK5oML",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:44.700 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:45.321 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:49.383+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:49.383+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:45.321 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:45.911 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:45.911 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XPLu643IhZPlW7W2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14349/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14349/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:45.911 [print] {
"resourceType": "Organization",
"id": "14349",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:50.593+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:45.911 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:45.911 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:45.911 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XPLu643IhZPlW7W2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14349/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14349/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:45.911 [print] {
"resourceType": "Organization",
"id": "14349",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:50.593+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:45.911 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:46.496 [print] {
"resourceType": "Organization",
"id": "14349",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:50.593+02:00",
"source": "#XPLu643IhZPlW7W2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:47.124 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:47.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:51.806+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:51.806+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:47.715 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:48.352 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:48.352 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FhWJuXbOKOEWdJ93"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14350/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14350/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:48.352 [print] {
"resourceType": "Organization",
"id": "14350",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:53.033+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:48.352 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:48.354 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:48.354 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FhWJuXbOKOEWdJ93"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14350/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14350/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:48.354 [print] {
"resourceType": "Organization",
"id": "14350",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:53.033+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:48.354 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:48.929 [print] {
"resourceType": "Organization",
"id": "14350",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:53.033+02:00",
"source": "#FhWJuXbOKOEWdJ93",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:49.525 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:50.109 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:54.212+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:54.212+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:50.110 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:50.751 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:50.751 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3cwAa7mHaJ7ZhR82"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14351/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14351/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:50.751 [print] {
"resourceType": "Organization",
"id": "14351",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:55.430+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:50.751 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:50.751 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:50.751 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3cwAa7mHaJ7ZhR82"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14351/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14351/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:50.751 [print] {
"resourceType": "Organization",
"id": "14351",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:55.430+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:50.751 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:51.353 [print] {
"resourceType": "Organization",
"id": "14351",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:55.430+02:00",
"source": "#3cwAa7mHaJ7ZhR82",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:52.013 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:52.646 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:56.690+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:56.690+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:52.648 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:53.280 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:53.280 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h1YlyZvbBw1OQj0a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14352/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14352/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:53.280 [print] {
"resourceType": "Organization",
"id": "14352",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:57.955+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:53.280 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:53.282 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:53.282 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h1YlyZvbBw1OQj0a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14352/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:55:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14352/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:55:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:53.282 [print] {
"resourceType": "Organization",
"id": "14352",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:57.955+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:53.282 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:53.846 [print] {
"resourceType": "Organization",
"id": "14352",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:55:57.955+02:00",
"source": "#h1YlyZvbBw1OQj0a",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:54.467 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:55.021 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:55:59.156+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:55:59.156+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:55.021 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:55.674 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:55.674 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qxZvZaxL2sr2GFZr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14353/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14353/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:55.674 [print] {
"resourceType": "Organization",
"id": "14353",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:00.319+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:55.674 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:55.675 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:55.675 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qxZvZaxL2sr2GFZr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14353/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14353/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:55.675 [print] {
"resourceType": "Organization",
"id": "14353",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:00.319+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:55.675 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:56.249 [print] {
"resourceType": "Organization",
"id": "14353",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:00.319+02:00",
"source": "#qxZvZaxL2sr2GFZr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:56.883 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:57.483 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:01.523+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:01.523+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:57.484 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:58.114 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:58.114 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0EXFH4mRNmsfl8Rf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14354/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14354/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:58.115 [print] {
"resourceType": "Organization",
"id": "14354",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:02.792+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:58.115 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:55:58.117 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:55:58.117 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0EXFH4mRNmsfl8Rf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14354/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14354/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:55:58.117 [print] {
"resourceType": "Organization",
"id": "14354",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:02.792+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:55:58.117 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:55:58.719 [print] {
"resourceType": "Organization",
"id": "14354",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:02.792+02:00",
"source": "#0EXFH4mRNmsfl8Rf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:55:59.320 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:55:59.942 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:04.004+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:04.004+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:55:59.943 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:00.521 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:00.521 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EdGbjl4H8XjPqhsq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14355/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14355/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:00.521 [print] {
"resourceType": "Organization",
"id": "14355",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:05.200+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:00.521 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:00.530 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:00.530 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EdGbjl4H8XjPqhsq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14355/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14355/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:00.530 [print] {
"resourceType": "Organization",
"id": "14355",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:05.200+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:00.530 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:01.101 [print] {
"resourceType": "Organization",
"id": "14355",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:05.200+02:00",
"source": "#EdGbjl4H8XjPqhsq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:01.728 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:02.355 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:06.411+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:06.411+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:02.355 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:02.986 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:02.986 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3Qt9wmzVEG6wiHzJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14356/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14356/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:02.986 [print] {
"resourceType": "Organization",
"id": "14356",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:07.661+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:02.986 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:02.988 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:02.988 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3Qt9wmzVEG6wiHzJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14356/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14356/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:02.988 [print] {
"resourceType": "Organization",
"id": "14356",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:07.661+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:02.988 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:03.574 [print] {
"resourceType": "Organization",
"id": "14356",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:07.661+02:00",
"source": "#3Qt9wmzVEG6wiHzJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:04.217 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:04.829 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:08.896+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:08.896+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:04.831 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:05.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:05.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JcB4kY56fsaXcQ8d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14357/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14357/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:05.455 [print] {
"resourceType": "Organization",
"id": "14357",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:10.130+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:05.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:05.455 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:05.455 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JcB4kY56fsaXcQ8d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14357/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14357/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:05.455 [print] {
"resourceType": "Organization",
"id": "14357",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:10.130+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:05.455 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:06.074 [print] {
"resourceType": "Organization",
"id": "14357",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:10.130+02:00",
"source": "#JcB4kY56fsaXcQ8d",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:06.684 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:07.291 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:11.366+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:11.366+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:07.292 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:07.905 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"324"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:07.905 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7hG8b4AveXaYAUEn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14358/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14358/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:07.905 [print] {
"resourceType": "Organization",
"id": "14358",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:12.581+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:07.905 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:07.905 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"324"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:07.905 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7hG8b4AveXaYAUEn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14358/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14358/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:07.905 [print] {
"resourceType": "Organization",
"id": "14358",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:12.581+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:07.905 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:08.472 [print] {
"resourceType": "Organization",
"id": "14358",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:12.581+02:00",
"source": "#7hG8b4AveXaYAUEn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:09.080 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:09.671 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:13.775+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:13.775+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:09.673 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:10.263 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"338"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:10.263 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h3hktnfSNSp67vq7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14359/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14359/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:10.263 [print] {
"resourceType": "Organization",
"id": "14359",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:14.935+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:10.263 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:10.265 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"338"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:10.265 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h3hktnfSNSp67vq7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14359/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14359/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:10.265 [print] {
"resourceType": "Organization",
"id": "14359",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:14.935+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:10.265 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:10.905 [print] {
"resourceType": "Organization",
"id": "14359",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:14.935+02:00",
"source": "#h3hktnfSNSp67vq7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:11.545 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:12.152 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:16.203+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:16.203+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:12.169 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:12.797 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:12.797 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6gvvCSPJ2jo22ySl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14360/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14360/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:12.797 [print] {
"resourceType": "Organization",
"id": "14360",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:17.473+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:12.797 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:12.798 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:12.798 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6gvvCSPJ2jo22ySl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14360/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14360/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:12.798 [print] {
"resourceType": "Organization",
"id": "14360",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:17.473+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:12.798 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:13.387 [print] {
"resourceType": "Organization",
"id": "14360",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:17.473+02:00",
"source": "#6gvvCSPJ2jo22ySl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:13.985 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:14.591 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:18.664+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:18.664+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:14.592 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:15.192 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"326"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:15.192 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WQwwpAvoVrpYf5R5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14361/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14361/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:15.192 [print] {
"resourceType": "Organization",
"id": "14361",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:19.873+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:15.192 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:15.193 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"326"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:15.193 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WQwwpAvoVrpYf5R5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14361/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14361/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:15.193 [print] {
"resourceType": "Organization",
"id": "14361",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:19.873+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:15.193 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:15.826 [print] {
"resourceType": "Organization",
"id": "14361",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:19.873+02:00",
"source": "#WQwwpAvoVrpYf5R5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:16.438 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:17.040 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:21.130+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:21.130+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:17.041 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:17.679 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:17.679 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ydlVuey5F9rJeww0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14362/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14362/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:17.679 [print] {
"resourceType": "Organization",
"id": "14362",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:22.349+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:17.679 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:17.681 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:17.681 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ydlVuey5F9rJeww0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14362/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14362/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:17.681 [print] {
"resourceType": "Organization",
"id": "14362",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:22.349+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:17.681 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:18.270 [print] {
"resourceType": "Organization",
"id": "14362",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:22.349+02:00",
"source": "#ydlVuey5F9rJeww0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:18.872 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:19.498 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:23.555+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:23.555+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:19.500 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:20.137 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:20.137 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QLlIXNHm7RTNHdpr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14363/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14363/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:20.137 [print] {
"resourceType": "Organization",
"id": "14363",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:24.820+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:20.137 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:20.137 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:20.137 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QLlIXNHm7RTNHdpr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14363/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14363/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:20.137 [print] {
"resourceType": "Organization",
"id": "14363",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:24.820+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:20.137 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:20.736 [print] {
"resourceType": "Organization",
"id": "14363",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:24.820+02:00",
"source": "#QLlIXNHm7RTNHdpr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:21.310 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:21.953 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:26.001+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:26.001+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:21.955 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:22.538 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:22.538 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dvuY2L5tTqqKonDe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14364/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14364/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:22.538 [print] {
"resourceType": "Organization",
"id": "14364",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:27.222+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:22.538 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:22.538 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:22.538 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dvuY2L5tTqqKonDe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14364/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14364/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:22.538 [print] {
"resourceType": "Organization",
"id": "14364",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:27.222+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:22.538 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:23.170 [print] {
"resourceType": "Organization",
"id": "14364",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:27.222+02:00",
"source": "#dvuY2L5tTqqKonDe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:23.801 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:24.387 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:28.481+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:28.481+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:24.387 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:25.012 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:25.013 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NGtDptk5PZsZbN0d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14365/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14365/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:25.013 [print] {
"resourceType": "Organization",
"id": "14365",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:29.684+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:25.013 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:25.015 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:25.015 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NGtDptk5PZsZbN0d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14365/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14365/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:25.015 [print] {
"resourceType": "Organization",
"id": "14365",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:29.684+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:25.015 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:25.570 [print] {
"resourceType": "Organization",
"id": "14365",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:29.684+02:00",
"source": "#NGtDptk5PZsZbN0d",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:26.204 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:26.827 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:30.891+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:30.891+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:26.827 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:27.476 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:27.476 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WXcq7ueMnLUjvJds"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14366/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14366/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:27.476 [print] {
"resourceType": "Organization",
"id": "14366",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:32.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:27.476 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:27.478 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:27.478 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WXcq7ueMnLUjvJds"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14366/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14366/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:27.478 [print] {
"resourceType": "Organization",
"id": "14366",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:32.156+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:27.478 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:28.074 [print] {
"resourceType": "Organization",
"id": "14366",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:32.156+02:00",
"source": "#WXcq7ueMnLUjvJds",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:28.653 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:29.286 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:33.328+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:33.328+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:29.301 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:29.917 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:29.917 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KoESyQ3uT4z24CLV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14367/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14367/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:29.917 [print] {
"resourceType": "Organization",
"id": "14367",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:34.590+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:29.917 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:29.917 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:29.917 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KoESyQ3uT4z24CLV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14367/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14367/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:29.917 [print] {
"resourceType": "Organization",
"id": "14367",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:34.590+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:29.917 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:30.503 [print] {
"resourceType": "Organization",
"id": "14367",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:34.590+02:00",
"source": "#KoESyQ3uT4z24CLV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:31.095 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:31.688 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:35.777+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:35.777+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:31.703 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:32.336 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:32.336 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zHXbGrtUeLcmavh9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14368/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14368/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:32.336 [print] {
"resourceType": "Organization",
"id": "14368",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:37.002+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:32.336 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:32.336 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:32.336 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zHXbGrtUeLcmavh9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14368/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14368/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:32.336 [print] {
"resourceType": "Organization",
"id": "14368",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:37.002+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:32.336 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:32.964 [print] {
"resourceType": "Organization",
"id": "14368",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:37.002+02:00",
"source": "#zHXbGrtUeLcmavh9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:33.569 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:34.237 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:38.261+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:38.261+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:34.238 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:34.819 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:34.819 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zPIVjizyxYDd9hQm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14369/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14369/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:34.819 [print] {
"resourceType": "Organization",
"id": "14369",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:39.501+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:34.819 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:34.821 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:34.821 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zPIVjizyxYDd9hQm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14369/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14369/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:34.821 [print] {
"resourceType": "Organization",
"id": "14369",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:39.501+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:34.821 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:35.446 [print] {
"resourceType": "Organization",
"id": "14369",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:39.501+02:00",
"source": "#zPIVjizyxYDd9hQm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:36.074 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:36.737 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:40.737+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:40.737+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:36.737 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:38.384 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:38.384 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rTv6CLXNWJeYTIC1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14370/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14370/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:38.384 [print] {
"resourceType": "Organization",
"id": "14370",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:43.076+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:38.384 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:38.401 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:38.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rTv6CLXNWJeYTIC1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14370/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14370/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:38.401 [print] {
"resourceType": "Organization",
"id": "14370",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:43.076+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:38.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:39.007 [print] {
"resourceType": "Organization",
"id": "14370",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:43.076+02:00",
"source": "#rTv6CLXNWJeYTIC1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:39.644 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:40.269 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:44.326+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:44.326+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:40.271 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:41.892 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"319"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:41.892 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WDEq9vGHvCkAYrIP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14371/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14371/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:41.892 [print] {
"resourceType": "Organization",
"id": "14371",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:46.562+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:41.892 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:41.894 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"319"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:41.894 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WDEq9vGHvCkAYrIP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14371/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14371/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:41.894 [print] {
"resourceType": "Organization",
"id": "14371",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:46.562+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:41.894 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:42.503 [print] {
"resourceType": "Organization",
"id": "14371",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:46.562+02:00",
"source": "#WDEq9vGHvCkAYrIP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:43.120 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:43.691 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:47.802+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:47.802+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:43.692 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:44.302 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:44.302 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mbstBWHoi0xWtV2d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14372/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14372/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:44.302 [print] {
"resourceType": "Organization",
"id": "14372",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:48.983+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:44.302 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:44.304 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:44.304 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mbstBWHoi0xWtV2d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14372/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14372/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:44.304 [print] {
"resourceType": "Organization",
"id": "14372",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:48.983+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:44.304 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:45.206 [print] {
"resourceType": "Organization",
"id": "14372",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:48.983+02:00",
"source": "#mbstBWHoi0xWtV2d",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:45.822 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:46.424 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:50.500+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:50.500+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:46.440 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:47.073 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"321"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:47.074 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"blE4b5M66hEYeVaW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14373/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14373/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:47.074 [print] {
"resourceType": "Organization",
"id": "14373",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:51.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:47.074 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:47.075 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"321"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:47.075 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"blE4b5M66hEYeVaW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14373/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14373/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:47.075 [print] {
"resourceType": "Organization",
"id": "14373",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:51.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:47.075 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:47.655 [print] {
"resourceType": "Organization",
"id": "14373",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:51.742+02:00",
"source": "#blE4b5M66hEYeVaW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:48.252 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:48.843 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:52.932+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:52.932+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:48.843 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:49.434 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:49.434 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mLdx2a0du8HTQ4g4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14374/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14374/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:49.434 [print] {
"resourceType": "Organization",
"id": "14374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:54.124+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:49.434 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:49.434 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:49.434 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mLdx2a0du8HTQ4g4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14374/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14374/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:49.434 [print] {
"resourceType": "Organization",
"id": "14374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:54.124+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:49.434 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:50.048 [print] {
"resourceType": "Organization",
"id": "14374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:54.124+02:00",
"source": "#mLdx2a0du8HTQ4g4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:50.680 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:51.256 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:55.356+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:55.356+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:51.258 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:52.089 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:52.089 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lgkpEJ7LUOF5suG1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14375/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14375/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:52.090 [print] {
"resourceType": "Organization",
"id": "14375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:56.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:52.090 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:52.091 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:52.091 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lgkpEJ7LUOF5suG1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14375/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14375/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:52.091 [print] {
"resourceType": "Organization",
"id": "14375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:56.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:52.091 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:52.710 [print] {
"resourceType": "Organization",
"id": "14375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:56.750+02:00",
"source": "#lgkpEJ7LUOF5suG1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:53.347 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:53.919 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:56:58.032+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:56:58.032+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:53.920 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:54.496 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:54.511 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l6sMPm8TOxmRNnOK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14376/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14376/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:54.511 [print] {
"resourceType": "Organization",
"id": "14376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:59.191+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:54.511 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:54.511 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:54.511 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l6sMPm8TOxmRNnOK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14376/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:56:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14376/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:56:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:54.511 [print] {
"resourceType": "Organization",
"id": "14376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:59.191+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:54.511 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:55.116 [print] {
"resourceType": "Organization",
"id": "14376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:56:59.191+02:00",
"source": "#l6sMPm8TOxmRNnOK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:56.069 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:56.704 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:00.628+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:00.628+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:56.704 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:57.313 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:57.313 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aMPmtM725UON00en"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14377/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14377/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:57.313 [print] {
"resourceType": "Organization",
"id": "14377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:01.982+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:57.313 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:56:57.315 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:56:57.315 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aMPmtM725UON00en"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14377/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14377/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:56:57.315 [print] {
"resourceType": "Organization",
"id": "14377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:01.982+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
09:56:57.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:56:58.136 [print] {
"resourceType": "Organization",
"id": "14377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:01.982+02:00",
"source": "#aMPmtM725UON00en",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:56:58.776 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:56:59.385 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:03.457+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:03.457+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:56:59.385 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:00.005 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:00.005 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jKCAQvAI1jTLCyjb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14378/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14378/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:00.005 [print] {
"resourceType": "Organization",
"id": "14378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:04.691+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:00.005 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:00.005 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:00.005 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jKCAQvAI1jTLCyjb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14378/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14378/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:00.005 [print] {
"resourceType": "Organization",
"id": "14378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:04.691+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:00.005 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:00.665 [print] {
"resourceType": "Organization",
"id": "14378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:04.691+02:00",
"source": "#jKCAQvAI1jTLCyjb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:01.286 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:01.923 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:05.974+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:05.974+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:01.938 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:02.547 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"354"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:02.547 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"L34qII1bpizyGqxS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14379/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14379/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:02.547 [print] {
"resourceType": "Organization",
"id": "14379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:07.220+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:02.549 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:02.550 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"354"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:02.550 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"L34qII1bpizyGqxS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14379/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14379/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:02.550 [print] {
"resourceType": "Organization",
"id": "14379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:07.220+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:02.550 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:03.196 [print] {
"resourceType": "Organization",
"id": "14379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:07.220+02:00",
"source": "#L34qII1bpizyGqxS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:03.825 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:04.435 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:08.505+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:08.505+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:04.435 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:05.019 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:05.019 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"02BVJZy6rN5dWbq8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14380/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14380/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:05.019 [print] {
"resourceType": "Organization",
"id": "14380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:09.698+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:05.019 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:05.021 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:05.021 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"02BVJZy6rN5dWbq8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14380/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14380/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:05.021 [print] {
"resourceType": "Organization",
"id": "14380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:09.698+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:05.021 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:05.642 [print] {
"resourceType": "Organization",
"id": "14380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:09.698+02:00",
"source": "#02BVJZy6rN5dWbq8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:06.293 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:06.903 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:10.952+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:10.952+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:06.903 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:07.546 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:07.546 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PBsPl1Y6aiU4p1bE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14381/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14381/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:07.546 [print] {
"resourceType": "Organization",
"id": "14381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:12.216+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:07.546 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:07.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:07.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PBsPl1Y6aiU4p1bE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14381/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14381/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:07.548 [print] {
"resourceType": "Organization",
"id": "14381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:12.216+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:07.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:08.187 [print] {
"resourceType": "Organization",
"id": "14381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:12.216+02:00",
"source": "#PBsPl1Y6aiU4p1bE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:08.779 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:09.393 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:13.458+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:13.458+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:09.395 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:10.017 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:10.017 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iv0v2jzbl2lSLqlq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14382/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14382/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:10.017 [print] {
"resourceType": "Organization",
"id": "14382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:14.696+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:10.017 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:10.018 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:10.018 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iv0v2jzbl2lSLqlq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14382/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14382/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:10.018 [print] {
"resourceType": "Organization",
"id": "14382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:14.696+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:10.018 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:10.586 [print] {
"resourceType": "Organization",
"id": "14382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:14.696+02:00",
"source": "#iv0v2jzbl2lSLqlq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:11.172 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:11.800 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:15.854+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:15.854+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:11.802 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:12.417 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:12.417 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WIXtrZgvc3gXGbzK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14383/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14383/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:12.417 [print] {
"resourceType": "Organization",
"id": "14383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:17.107+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:12.417 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:12.417 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:12.417 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WIXtrZgvc3gXGbzK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14383/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14383/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:12.417 [print] {
"resourceType": "Organization",
"id": "14383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:17.107+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:12.417 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:13.067 [print] {
"resourceType": "Organization",
"id": "14383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:17.107+02:00",
"source": "#WIXtrZgvc3gXGbzK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:13.669 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:14.238 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:18.352+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:18.352+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:14.239 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:14.866 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"397"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:14.866 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IKmGa4mcdrw6Gg5E"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14384/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14384/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:14.866 [print] {
"resourceType": "Organization",
"id": "14384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:19.545+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:14.866 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:14.868 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"397"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:14.868 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IKmGa4mcdrw6Gg5E"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14384/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14384/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:14.868 [print] {
"resourceType": "Organization",
"id": "14384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:19.545+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:14.868 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:15.472 [print] {
"resourceType": "Organization",
"id": "14384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:19.545+02:00",
"source": "#IKmGa4mcdrw6Gg5E",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:16.121 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:16.750 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:20.811+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:20.811+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:16.750 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:17.342 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:17.342 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bHoWiZy6fEL2YpIy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14385/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14385/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:17.342 [print] {
"resourceType": "Organization",
"id": "14385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:22.022+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:17.342 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:17.344 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:17.344 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bHoWiZy6fEL2YpIy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14385/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14385/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:17.344 [print] {
"resourceType": "Organization",
"id": "14385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:22.022+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:17.344 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:17.959 [print] {
"resourceType": "Organization",
"id": "14385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:22.022+02:00",
"source": "#bHoWiZy6fEL2YpIy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:18.562 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:19.455 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:23.246+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:23.246+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:19.456 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:20.052 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:20.052 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tQ2T3YnMKGI5Fcma"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14386/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14386/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:20.052 [print] {
"resourceType": "Organization",
"id": "14386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:24.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:20.052 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:20.052 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:20.052 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tQ2T3YnMKGI5Fcma"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14386/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14386/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:20.052 [print] {
"resourceType": "Organization",
"id": "14386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:24.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:20.052 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:20.632 [print] {
"resourceType": "Organization",
"id": "14386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:24.733+02:00",
"source": "#tQ2T3YnMKGI5Fcma",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:21.219 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:21.785 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:25.903+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:25.903+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:21.785 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:22.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:22.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l7Efj3Vdt2en5bjR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14387/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14387/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:22.742 [print] {
"resourceType": "Organization",
"id": "14387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:27.422+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:22.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:22.744 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:22.744 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l7Efj3Vdt2en5bjR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14387/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14387/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:22.744 [print] {
"resourceType": "Organization",
"id": "14387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:27.422+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:22.744 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:23.568 [print] {
"resourceType": "Organization",
"id": "14387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:27.422+02:00",
"source": "#l7Efj3Vdt2en5bjR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:24.185 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:24.833 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:28.865+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:28.865+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:24.833 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:25.444 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:25.444 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fh7RliqTjgNG4x2q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14388/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14388/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:25.444 [print] {
"resourceType": "Organization",
"id": "14388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:30.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:25.444 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:25.444 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:25.444 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fh7RliqTjgNG4x2q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14388/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14388/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:25.444 [print] {
"resourceType": "Organization",
"id": "14388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:30.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:25.444 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:26.079 [print] {
"resourceType": "Organization",
"id": "14388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:30.131+02:00",
"source": "#fh7RliqTjgNG4x2q",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:26.695 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:27.320 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:31.388+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:31.388+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:27.320 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:27.915 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:27.915 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IiO0QLv49RrS7GTe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14389/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14389/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:27.915 [print] {
"resourceType": "Organization",
"id": "14389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:32.592+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:27.915 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:27.916 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:27.916 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IiO0QLv49RrS7GTe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14389/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14389/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:27.916 [print] {
"resourceType": "Organization",
"id": "14389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:32.592+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:27.916 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:29.495 [print] {
"resourceType": "Organization",
"id": "14389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:32.592+02:00",
"source": "#IiO0QLv49RrS7GTe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:30.084 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:30.697 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:34.767+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:34.767+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:30.698 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:31.345 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"371"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:31.345 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K6csOP4EdxOAYYge"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14390/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14390/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:31.345 [print] {
"resourceType": "Organization",
"id": "14390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:36.001+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:31.345 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:31.346 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"371"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:31.347 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"K6csOP4EdxOAYYge"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14390/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14390/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:31.347 [print] {
"resourceType": "Organization",
"id": "14390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:36.001+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:31.347 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:32.013 [print] {
"resourceType": "Organization",
"id": "14390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:36.001+02:00",
"source": "#K6csOP4EdxOAYYge",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:32.650 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:33.268 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:37.320+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:37.320+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:33.269 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:33.901 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:33.901 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rm1OYPMP7YiKedXR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14391/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14391/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:33.902 [print] {
"resourceType": "Organization",
"id": "14391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:38.574+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:33.902 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:33.904 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:33.904 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rm1OYPMP7YiKedXR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14391/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14391/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:33.904 [print] {
"resourceType": "Organization",
"id": "14391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:38.574+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:33.904 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:34.731 [print] {
"resourceType": "Organization",
"id": "14391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:38.574+02:00",
"source": "#rm1OYPMP7YiKedXR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:35.361 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:35.990 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:40.038+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:40.038+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:35.990 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:36.616 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:36.616 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iiefmyuLrrindMQD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14392/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14392/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:36.616 [print] {
"resourceType": "Organization",
"id": "14392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:41.293+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:36.616 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:36.619 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:36.619 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iiefmyuLrrindMQD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14392/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14392/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:36.619 [print] {
"resourceType": "Organization",
"id": "14392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:41.293+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:36.619 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:37.193 [print] {
"resourceType": "Organization",
"id": "14392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:41.293+02:00",
"source": "#iiefmyuLrrindMQD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:37.813 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:38.437 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:42.496+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:42.496+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:38.439 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:39.000 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:39.015 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bg692Y6LnV4EXhXT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14393/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14393/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:39.015 [print] {
"resourceType": "Organization",
"id": "14393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:43.693+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:39.015 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:39.015 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:39.015 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bg692Y6LnV4EXhXT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14393/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14393/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:39.015 [print] {
"resourceType": "Organization",
"id": "14393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:43.693+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:39.015 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:39.600 [print] {
"resourceType": "Organization",
"id": "14393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:43.693+02:00",
"source": "#Bg692Y6LnV4EXhXT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:40.185 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:40.808 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:44.873+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:44.873+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:40.809 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:41.473 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:41.473 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZwnjJciUBvdnG6Sh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14394/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14394/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:41.473 [print] {
"resourceType": "Organization",
"id": "14394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:46.144+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:41.473 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:41.475 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:41.475 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZwnjJciUBvdnG6Sh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14394/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14394/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:41.475 [print] {
"resourceType": "Organization",
"id": "14394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:46.144+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:41.475 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:42.112 [print] {
"resourceType": "Organization",
"id": "14394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:46.144+02:00",
"source": "#ZwnjJciUBvdnG6Sh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:42.704 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:43.278 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:47.388+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:47.388+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:43.278 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:43.852 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:43.852 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VEShBG24u8vEHXdR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14395/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14395/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:43.852 [print] {
"resourceType": "Organization",
"id": "14395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:48.547+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:43.852 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:43.852 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:43.852 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VEShBG24u8vEHXdR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14395/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14395/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:43.852 [print] {
"resourceType": "Organization",
"id": "14395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:48.547+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:43.852 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:44.432 [print] {
"resourceType": "Organization",
"id": "14395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:48.547+02:00",
"source": "#VEShBG24u8vEHXdR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:45.051 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:45.664 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:49.730+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:49.730+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:45.665 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:46.300 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"378"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:46.300 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GaQhujKPuGrkhTbC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14396/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14396/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:46.300 [print] {
"resourceType": "Organization",
"id": "14396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:50.949+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:46.300 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:46.300 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"378"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:46.300 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GaQhujKPuGrkhTbC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14396/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14396/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:46.300 [print] {
"resourceType": "Organization",
"id": "14396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:50.949+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:46.300 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:46.904 [print] {
"resourceType": "Organization",
"id": "14396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:50.949+02:00",
"source": "#GaQhujKPuGrkhTbC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:47.508 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:48.074 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:52.203+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:52.203+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:48.090 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:48.703 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:48.703 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tbyQA7yRFN2bCrRQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14397/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14397/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:48.703 [print] {
"resourceType": "Organization",
"id": "14397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:53.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:48.703 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:48.703 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:48.703 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tbyQA7yRFN2bCrRQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14397/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14397/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:48.703 [print] {
"resourceType": "Organization",
"id": "14397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:53.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:48.703 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:49.331 [print] {
"resourceType": "Organization",
"id": "14397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:53.388+02:00",
"source": "#tbyQA7yRFN2bCrRQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:49.902 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:50.536 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:54.599+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:54.599+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:50.536 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:51.184 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:51.184 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J1dctxxwrrbnt6nu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14398/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14398/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:51.184 [print] {
"resourceType": "Organization",
"id": "14398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:55.874+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:51.184 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:51.184 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:51.184 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J1dctxxwrrbnt6nu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14398/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14398/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:51.184 [print] {
"resourceType": "Organization",
"id": "14398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:55.874+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:51.184 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:51.803 [print] {
"resourceType": "Organization",
"id": "14398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:55.874+02:00",
"source": "#J1dctxxwrrbnt6nu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:52.445 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:53.035 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:57.119+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:57.119+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:53.035 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:53.661 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:53.661 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"huxJ5rnN4DMy1B2e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14399/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14399/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:53.661 [print] {
"resourceType": "Organization",
"id": "14399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:58.349+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:53.661 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:53.661 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:53.661 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"huxJ5rnN4DMy1B2e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14399/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:57:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14399/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:57:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:53.661 [print] {
"resourceType": "Organization",
"id": "14399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:58.349+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:53.661 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:54.320 [print] {
"resourceType": "Organization",
"id": "14399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:57:58.349+02:00",
"source": "#huxJ5rnN4DMy1B2e",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:55.005 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:56.042 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:57:59.679+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:57:59.679+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:56.044 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:56.660 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:56.660 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Drq65V0dulVeLb2N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14400/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14400/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:56.660 [print] {
"resourceType": "Organization",
"id": "14400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:01.339+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:56.660 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:56.661 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:56.661 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Drq65V0dulVeLb2N"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14400/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14400/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:56.661 [print] {
"resourceType": "Organization",
"id": "14400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:01.339+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:56.661 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:57.302 [print] {
"resourceType": "Organization",
"id": "14400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:01.339+02:00",
"source": "#Drq65V0dulVeLb2N",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:57:58.152 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:57:58.784 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:02.850+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:02.850+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:57:58.784 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:59.410 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:59.410 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"euIWm3NrHiBPDozg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14401/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14401/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:59.410 [print] {
"resourceType": "Organization",
"id": "14401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:04.089+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:59.410 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:57:59.410 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:57:59.410 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"euIWm3NrHiBPDozg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14401/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14401/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:57:59.410 [print] {
"resourceType": "Organization",
"id": "14401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:04.089+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:57:59.410 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:57:59.984 [print] {
"resourceType": "Organization",
"id": "14401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:04.089+02:00",
"source": "#euIWm3NrHiBPDozg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:00.602 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:01.188 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:05.287+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:05.287+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:01.189 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:01.970 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:01.970 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QIxwGnFkQfwjyuDV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14402/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14402/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:01.970 [print] {
"resourceType": "Organization",
"id": "14402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:06.653+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:01.970 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:01.970 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:01.970 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QIxwGnFkQfwjyuDV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14402/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14402/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:01.970 [print] {
"resourceType": "Organization",
"id": "14402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:06.653+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:01.970 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:02.613 [print] {
"resourceType": "Organization",
"id": "14402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:06.653+02:00",
"source": "#QIxwGnFkQfwjyuDV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:03.225 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:03.788 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:07.904+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:07.904+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:03.789 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:04.398 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"352"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:04.399 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ykBXNe95b8VdFdHx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14403/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14403/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:04.399 [print] {
"resourceType": "Organization",
"id": "14403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:09.081+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:04.399 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:04.400 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"352"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:04.401 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ykBXNe95b8VdFdHx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14403/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14403/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:04.401 [print] {
"resourceType": "Organization",
"id": "14403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:09.081+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:04.401 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:04.975 [print] {
"resourceType": "Organization",
"id": "14403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:09.081+02:00",
"source": "#ykBXNe95b8VdFdHx",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:05.567 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:06.135 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:10.252+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:10.252+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:06.135 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:06.768 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:06.768 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ia5Qhdy4eZ2WrYI8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14404/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14404/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:06.768 [print] {
"resourceType": "Organization",
"id": "14404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:11.449+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:06.768 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:06.768 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:06.768 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ia5Qhdy4eZ2WrYI8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14404/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14404/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:06.768 [print] {
"resourceType": "Organization",
"id": "14404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:11.449+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:06.768 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:07.353 [print] {
"resourceType": "Organization",
"id": "14404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:11.449+02:00",
"source": "#ia5Qhdy4eZ2WrYI8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:08.016 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:08.626 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:12.694+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:12.694+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:08.626 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:09.265 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:09.265 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ldLex5hBs9jkGYuO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14405/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14405/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:09.265 [print] {
"resourceType": "Organization",
"id": "14405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:13.900+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:09.265 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:09.265 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:09.265 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ldLex5hBs9jkGYuO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14405/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14405/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:09.265 [print] {
"resourceType": "Organization",
"id": "14405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:13.900+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:09.265 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:09.835 [print] {
"resourceType": "Organization",
"id": "14405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:13.900+02:00",
"source": "#ldLex5hBs9jkGYuO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:10.571 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:11.166 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:15.257+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:15.257+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:11.167 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:11.791 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:11.791 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mgzH8BNb6a2yNfxV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14406/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14406/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:11.791 [print] {
"resourceType": "Organization",
"id": "14406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:16.469+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:11.791 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:11.791 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:11.791 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mgzH8BNb6a2yNfxV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14406/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14406/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:11.791 [print] {
"resourceType": "Organization",
"id": "14406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:16.469+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:11.791 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:12.359 [print] {
"resourceType": "Organization",
"id": "14406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:16.469+02:00",
"source": "#mgzH8BNb6a2yNfxV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:13.003 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:13.618 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:17.684+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:17.684+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:13.620 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:14.210 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:14.210 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"v0aUqfbxD5G63Z8o"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14407/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14407/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:14.210 [print] {
"resourceType": "Organization",
"id": "14407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:18.884+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:14.210 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:14.211 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:14.211 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"v0aUqfbxD5G63Z8o"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14407/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14407/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:14.211 [print] {
"resourceType": "Organization",
"id": "14407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:18.884+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:14.211 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:15.806 [print] {
"resourceType": "Organization",
"id": "14407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:18.884+02:00",
"source": "#v0aUqfbxD5G63Z8o",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:16.435 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:17.056 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:21.113+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:21.113+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:17.056 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:17.659 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:17.659 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IJfh0PR9feNgtLKT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14408/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14408/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:17.659 [print] {
"resourceType": "Organization",
"id": "14408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:22.339+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:17.659 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:17.660 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:17.660 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IJfh0PR9feNgtLKT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14408/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14408/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:17.660 [print] {
"resourceType": "Organization",
"id": "14408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:22.339+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:17.660 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:18.263 [print] {
"resourceType": "Organization",
"id": "14408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:22.339+02:00",
"source": "#IJfh0PR9feNgtLKT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:18.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:19.482 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:23.581+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:23.581+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:19.482 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:20.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:20.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3NZXrSzA0UvNgbwe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14409/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14409/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:20.105 [print] {
"resourceType": "Organization",
"id": "14409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:24.789+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:20.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:20.106 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:20.106 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3NZXrSzA0UvNgbwe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14409/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14409/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:20.106 [print] {
"resourceType": "Organization",
"id": "14409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:24.789+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:20.106 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:21.931 [print] {
"resourceType": "Organization",
"id": "14409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:24.789+02:00",
"source": "#3NZXrSzA0UvNgbwe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:22.509 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:23.104 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:27.190+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:27.190+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:23.106 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:23.687 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:23.687 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"liYYUW6wN5IKQuxL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14410/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14410/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:23.687 [print] {
"resourceType": "Organization",
"id": "14410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:28.370+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:23.687 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:23.689 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:23.689 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"liYYUW6wN5IKQuxL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14410/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14410/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:23.689 [print] {
"resourceType": "Organization",
"id": "14410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:28.370+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:23.689 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:24.258 [print] {
"resourceType": "Organization",
"id": "14410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:28.370+02:00",
"source": "#liYYUW6wN5IKQuxL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:24.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:25.472 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:29.571+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:29.571+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:25.472 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:26.392 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:26.392 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OKKMVsFalMfltSbJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14411/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14411/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:26.392 [print] {
"resourceType": "Organization",
"id": "14411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:31.064+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:26.392 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:26.394 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:26.394 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OKKMVsFalMfltSbJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14411/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14411/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:26.394 [print] {
"resourceType": "Organization",
"id": "14411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:31.064+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:26.394 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:27.002 [print] {
"resourceType": "Organization",
"id": "14411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:31.064+02:00",
"source": "#OKKMVsFalMfltSbJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:27.604 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:28.189 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:32.272+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:32.272+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:28.189 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:28.802 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:28.802 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zEUsJTAsUh94E2wL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14412/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14412/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:28.802 [print] {
"resourceType": "Organization",
"id": "14412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:33.485+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:28.802 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:28.802 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:28.802 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zEUsJTAsUh94E2wL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14412/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14412/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:28.802 [print] {
"resourceType": "Organization",
"id": "14412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:33.485+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:28.802 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:29.367 [print] {
"resourceType": "Organization",
"id": "14412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:33.485+02:00",
"source": "#zEUsJTAsUh94E2wL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:30.004 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:30.604 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:34.687+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:34.687+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:30.605 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:31.277 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:31.277 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8yI3IrId0FgPss58"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14413/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14413/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:31.277 [print] {
"resourceType": "Organization",
"id": "14413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:35.959+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:31.277 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:31.279 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:31.279 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8yI3IrId0FgPss58"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14413/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14413/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:31.279 [print] {
"resourceType": "Organization",
"id": "14413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:35.959+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:31.279 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:31.883 [print] {
"resourceType": "Organization",
"id": "14413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:35.959+02:00",
"source": "#8yI3IrId0FgPss58",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:32.550 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:33.133 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:37.220+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:37.220+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:33.133 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:33.746 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"346"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:33.746 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ic5vcK4GtuWCvEWp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14414/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:33.746 [print] {
"resourceType": "Organization",
"id": "14414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:38.421+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:33.746 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:33.746 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"346"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:33.746 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ic5vcK4GtuWCvEWp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14414/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:33.746 [print] {
"resourceType": "Organization",
"id": "14414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:38.421+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:33.746 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:34.369 [print] {
"resourceType": "Organization",
"id": "14414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:38.421+02:00",
"source": "#ic5vcK4GtuWCvEWp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:34.989 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:35.617 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:39.684+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:39.684+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:35.617 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:36.240 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:36.240 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kOOonUe3yynMNCxj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14415/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:36.240 [print] {
"resourceType": "Organization",
"id": "14415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:40.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:36.240 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:36.242 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:36.242 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kOOonUe3yynMNCxj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14415/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:36.242 [print] {
"resourceType": "Organization",
"id": "14415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:40.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:36.242 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:36.832 [print] {
"resourceType": "Organization",
"id": "14415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:40.916+02:00",
"source": "#kOOonUe3yynMNCxj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:37.464 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:38.119 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:42.136+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:42.136+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:38.119 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:38.738 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:38.738 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UngJJm7JDKqGzZMW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14416/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:38.738 [print] {
"resourceType": "Organization",
"id": "14416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:43.406+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:38.738 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:38.740 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:38.740 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UngJJm7JDKqGzZMW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14416/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:38.740 [print] {
"resourceType": "Organization",
"id": "14416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:43.406+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:38.740 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:39.329 [print] {
"resourceType": "Organization",
"id": "14416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:43.406+02:00",
"source": "#UngJJm7JDKqGzZMW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:39.946 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:40.539 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:44.639+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:44.639+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:40.540 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:41.144 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:41.144 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kr2lNw4CGFntPyvP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14417/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:41.144 [print] {
"resourceType": "Organization",
"id": "14417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:45.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:41.144 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:41.146 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:41.146 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kr2lNw4CGFntPyvP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14417/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:41.146 [print] {
"resourceType": "Organization",
"id": "14417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:45.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:41.146 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:41.717 [print] {
"resourceType": "Organization",
"id": "14417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:45.811+02:00",
"source": "#kr2lNw4CGFntPyvP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:42.300 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:42.884 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:46.988+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:46.988+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:42.884 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:43.461 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:43.461 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0DUuF2RLorw9daIC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14418/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:43.461 [print] {
"resourceType": "Organization",
"id": "14418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:48.138+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:43.461 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:43.463 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:43.463 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0DUuF2RLorw9daIC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14418/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:43.463 [print] {
"resourceType": "Organization",
"id": "14418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:48.138+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:43.463 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:44.034 [print] {
"resourceType": "Organization",
"id": "14418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:48.138+02:00",
"source": "#0DUuF2RLorw9daIC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:44.650 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:45.496 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:49.331+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:49.331+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:45.497 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:46.116 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"363"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:46.116 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rj6eE7kyqrjDZGU4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14419/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:46.132 [print] {
"resourceType": "Organization",
"id": "14419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:50.776+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:46.132 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:46.132 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"363"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:46.132 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rj6eE7kyqrjDZGU4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14419/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:46.132 [print] {
"resourceType": "Organization",
"id": "14419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:50.776+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:46.132 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:46.784 [print] {
"resourceType": "Organization",
"id": "14419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:50.776+02:00",
"source": "#Rj6eE7kyqrjDZGU4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:47.684 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:48.278 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:52.361+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:52.361+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:48.278 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:48.880 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:48.880 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KW2s6anzRtTUpWES"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14420/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:48.880 [print] {
"resourceType": "Organization",
"id": "14420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:53.562+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:48.880 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:48.880 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:48.880 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KW2s6anzRtTUpWES"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14420/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:48.880 [print] {
"resourceType": "Organization",
"id": "14420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:53.562+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:48.880 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:49.768 [print] {
"resourceType": "Organization",
"id": "14420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:53.562+02:00",
"source": "#KW2s6anzRtTUpWES",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:50.385 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:51.403 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:55.075+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:55.075+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:51.403 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:52.218 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:52.218 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vKZ0cFFEvG24lCot"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14421/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:52.218 [print] {
"resourceType": "Organization",
"id": "14421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:56.900+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:52.218 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:52.218 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:52.218 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vKZ0cFFEvG24lCot"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14421/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:52.218 [print] {
"resourceType": "Organization",
"id": "14421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:56.900+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:52.218 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:52.833 [print] {
"resourceType": "Organization",
"id": "14421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:56.900+02:00",
"source": "#vKZ0cFFEvG24lCot",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:53.524 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:54.132 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:58:58.197+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:58:58.197+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:54.148 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:54.765 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:54.765 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"L96DJJrl8XssGiHf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14422/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:54.765 [print] {
"resourceType": "Organization",
"id": "14422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:59.458+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:54.765 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:54.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:54.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"L96DJJrl8XssGiHf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14422/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:58:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:58:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:54.780 [print] {
"resourceType": "Organization",
"id": "14422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:59.458+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:54.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:55.409 [print] {
"resourceType": "Organization",
"id": "14422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:58:59.458+02:00",
"source": "#L96DJJrl8XssGiHf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:56.049 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:56.698 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:00.737+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:00.737+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:56.701 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:57.381 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"375"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:57.381 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bxz2GH20BfqgKllv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14423/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:57.381 [print] {
"resourceType": "Organization",
"id": "14423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:02.061+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:57.381 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:57.381 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"375"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:57.381 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Bxz2GH20BfqgKllv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14423/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:57.381 [print] {
"resourceType": "Organization",
"id": "14423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:02.061+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:57.381 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:58:58.001 [print] {
"resourceType": "Organization",
"id": "14423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:02.061+02:00",
"source": "#Bxz2GH20BfqgKllv",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:58:58.733 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:58:59.307 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:03.418+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:03.418+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:58:59.308 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:59.882 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:59.882 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vn0mnuvOckkRs2ug"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14424/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:59.882 [print] {
"resourceType": "Organization",
"id": "14424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:04.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:59.882 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:58:59.898 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:58:59.898 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vn0mnuvOckkRs2ug"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14424/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:58:59.898 [print] {
"resourceType": "Organization",
"id": "14424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:04.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:58:59.898 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:00.452 [print] {
"resourceType": "Organization",
"id": "14424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:04.573+02:00",
"source": "#vn0mnuvOckkRs2ug",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:01.105 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:01.760 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:05.781+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:05.781+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:01.761 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:02.462 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:02.462 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RuWGzOJFncUd11IU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14425/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:02.462 [print] {
"resourceType": "Organization",
"id": "14425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:07.140+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:02.462 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:02.465 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:02.465 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RuWGzOJFncUd11IU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14425/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:02.465 [print] {
"resourceType": "Organization",
"id": "14425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:07.140+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:02.465 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:03.386 [print] {
"resourceType": "Organization",
"id": "14425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:07.140+02:00",
"source": "#RuWGzOJFncUd11IU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:03.971 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:04.631 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:08.661+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:08.661+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:04.632 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:05.278 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:05.278 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YOePUPyHWvkHx7A9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14426/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:05.278 [print] {
"resourceType": "Organization",
"id": "14426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:09.961+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:05.278 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:05.280 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:05.280 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YOePUPyHWvkHx7A9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14426/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:05.281 [print] {
"resourceType": "Organization",
"id": "14426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:09.961+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:05.281 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:05.916 [print] {
"resourceType": "Organization",
"id": "14426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:09.961+02:00",
"source": "#YOePUPyHWvkHx7A9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:06.570 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:07.516 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:11.250+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:11.250+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:07.516 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:08.380 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:08.380 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GMebMXpavxl2vrDA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14427/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:08.380 [print] {
"resourceType": "Organization",
"id": "14427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:13.066+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:08.380 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:08.380 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:08.380 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GMebMXpavxl2vrDA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14427/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:08.380 [print] {
"resourceType": "Organization",
"id": "14427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:13.066+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:08.380 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:08.981 [print] {
"resourceType": "Organization",
"id": "14427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:13.066+02:00",
"source": "#GMebMXpavxl2vrDA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:09.605 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:10.230 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:14.295+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:14.295+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:10.231 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:10.813 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:10.814 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J6vcs0917nCv9ikY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14428/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:10.814 [print] {
"resourceType": "Organization",
"id": "14428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:15.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:10.814 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:10.815 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:10.815 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"J6vcs0917nCv9ikY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14428/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:10.815 [print] {
"resourceType": "Organization",
"id": "14428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:15.481+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:10.815 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:11.414 [print] {
"resourceType": "Organization",
"id": "14428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:15.481+02:00",
"source": "#J6vcs0917nCv9ikY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:12.117 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:12.731 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:16.799+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:16.799+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:12.731 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:13.331 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:13.331 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vLvcB95TTQp9xZBW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14429/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:13.331 [print] {
"resourceType": "Organization",
"id": "14429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:18.009+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:13.331 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:13.331 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:13.331 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vLvcB95TTQp9xZBW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14429/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:13.331 [print] {
"resourceType": "Organization",
"id": "14429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:18.009+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:13.331 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:13.917 [print] {
"resourceType": "Organization",
"id": "14429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:18.009+02:00",
"source": "#vLvcB95TTQp9xZBW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:14.540 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:15.135 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:19.237+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:19.237+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:15.135 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:15.759 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:15.759 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1KvxDbbCiF7sGeYE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14430/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:15.759 [print] {
"resourceType": "Organization",
"id": "14430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:20.445+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:15.759 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:15.759 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:15.759 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1KvxDbbCiF7sGeYE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14430/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:15.759 [print] {
"resourceType": "Organization",
"id": "14430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:20.445+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:15.759 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:16.408 [print] {
"resourceType": "Organization",
"id": "14430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:20.445+02:00",
"source": "#1KvxDbbCiF7sGeYE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:18.018 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:18.800 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:22.700+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:22.700+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:18.800 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:19.432 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:19.432 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EZaq66zfvZ7JptKn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14431/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:19.432 [print] {
"resourceType": "Organization",
"id": "14431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:24.100+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:19.432 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:19.432 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:19.432 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EZaq66zfvZ7JptKn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14431/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:19.432 [print] {
"resourceType": "Organization",
"id": "14431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:24.100+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:19.432 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:19.989 [print] {
"resourceType": "Organization",
"id": "14431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:24.100+02:00",
"source": "#EZaq66zfvZ7JptKn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:20.574 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:21.181 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:25.266+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:25.266+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:21.196 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:21.767 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:21.767 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UZZ0CNQNsuFUuU1j"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14432/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:21.767 [print] {
"resourceType": "Organization",
"id": "14432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:26.463+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:21.767 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:21.782 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:21.782 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UZZ0CNQNsuFUuU1j"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14432/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:21.782 [print] {
"resourceType": "Organization",
"id": "14432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:26.463+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:21.782 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:22.361 [print] {
"resourceType": "Organization",
"id": "14432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:26.463+02:00",
"source": "#UZZ0CNQNsuFUuU1j",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:23.001 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:23.602 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:27.678+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:27.678+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:23.602 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:24.235 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:24.235 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jGLiPtb4GbxXdDbf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14433/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:24.235 [print] {
"resourceType": "Organization",
"id": "14433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:28.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:24.235 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:24.235 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:24.235 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jGLiPtb4GbxXdDbf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14433/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:24.235 [print] {
"resourceType": "Organization",
"id": "14433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:28.916+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:24.235 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:24.937 [print] {
"resourceType": "Organization",
"id": "14433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:28.916+02:00",
"source": "#jGLiPtb4GbxXdDbf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:25.531 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:27.132 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:30.214+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:30.214+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:27.132 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:27.802 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:27.802 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bAz0xU0XiSmv7oWR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14434/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:27.802 [print] {
"resourceType": "Organization",
"id": "14434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:32.475+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:27.802 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:27.802 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:27.802 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bAz0xU0XiSmv7oWR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14434/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:27.802 [print] {
"resourceType": "Organization",
"id": "14434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:32.475+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:27.802 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:28.436 [print] {
"resourceType": "Organization",
"id": "14434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:32.475+02:00",
"source": "#bAz0xU0XiSmv7oWR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:29.007 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:29.640 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:33.701+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:33.701+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:29.640 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:30.241 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:30.241 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BztdrjEW7fFFNblp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14435/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:30.241 [print] {
"resourceType": "Organization",
"id": "14435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:34.931+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:30.241 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:30.241 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:30.241 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BztdrjEW7fFFNblp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14435/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:30.241 [print] {
"resourceType": "Organization",
"id": "14435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:34.931+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:30.256 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:30.893 [print] {
"resourceType": "Organization",
"id": "14435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:34.931+02:00",
"source": "#BztdrjEW7fFFNblp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:31.521 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:32.130 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:36.202+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:36.202+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:32.130 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:32.797 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:32.797 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xmHXpBUod16xpJyZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14436/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:32.797 [print] {
"resourceType": "Organization",
"id": "14436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:37.489+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:32.797 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:32.797 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:32.797 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xmHXpBUod16xpJyZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14436/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:32.797 [print] {
"resourceType": "Organization",
"id": "14436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:37.489+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:32.797 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:33.433 [print] {
"resourceType": "Organization",
"id": "14436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:37.489+02:00",
"source": "#xmHXpBUod16xpJyZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:35.012 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:35.802 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:39.697+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:39.697+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:35.802 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:36.643 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:36.643 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nPTswWnTT6DiHPXA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14437/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:36.643 [print] {
"resourceType": "Organization",
"id": "14437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:41.314+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:36.643 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:36.643 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:36.643 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nPTswWnTT6DiHPXA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14437/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:36.643 [print] {
"resourceType": "Organization",
"id": "14437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:41.314+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:36.643 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:37.220 [print] {
"resourceType": "Organization",
"id": "14437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:41.314+02:00",
"source": "#nPTswWnTT6DiHPXA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:37.877 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:38.497 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:42.554+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:42.554+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:38.497 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:39.403 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:39.403 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jgbnszPuMagDlbnN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14438/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:39.403 [print] {
"resourceType": "Organization",
"id": "14438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:44.072+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:39.403 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:39.405 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:39.405 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jgbnszPuMagDlbnN"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14438/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:39.405 [print] {
"resourceType": "Organization",
"id": "14438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:44.072+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:39.405 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:40.012 [print] {
"resourceType": "Organization",
"id": "14438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:44.072+02:00",
"source": "#jgbnszPuMagDlbnN",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:40.653 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:41.561 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:45.330+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:45.330+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:41.565 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:43.505 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:43.505 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"n8yPU2wtzq7mGWEc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14439/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:43.505 [print] {
"resourceType": "Organization",
"id": "14439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:48.151+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:43.505 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:43.507 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:43.507 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"n8yPU2wtzq7mGWEc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14439/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:43.507 [print] {
"resourceType": "Organization",
"id": "14439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:48.151+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:43.507 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:44.087 [print] {
"resourceType": "Organization",
"id": "14439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:48.151+02:00",
"source": "#n8yPU2wtzq7mGWEc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:44.730 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:45.563 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:49.402+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:49.402+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:45.563 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:46.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:46.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kwZVCffnuloQA7A9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14440/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:46.138 [print] {
"resourceType": "Organization",
"id": "14440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:50.821+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:46.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:46.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:46.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kwZVCffnuloQA7A9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14440/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:46.138 [print] {
"resourceType": "Organization",
"id": "14440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:50.821+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:46.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:46.785 [print] {
"resourceType": "Organization",
"id": "14440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:50.821+02:00",
"source": "#kwZVCffnuloQA7A9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:47.422 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:48.011 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:52.103+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:52.103+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:48.011 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:48.654 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:48.654 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"awH42IUqff6RCUae"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14441/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:48.654 [print] {
"resourceType": "Organization",
"id": "14441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:53.326+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:48.654 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:48.654 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:48.654 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"awH42IUqff6RCUae"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14441/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:48.654 [print] {
"resourceType": "Organization",
"id": "14441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:53.326+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:48.654 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:49.275 [print] {
"resourceType": "Organization",
"id": "14441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:53.326+02:00",
"source": "#awH42IUqff6RCUae",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:49.866 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:50.720 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:54.547+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:54.547+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:50.720 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:52.364 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:52.364 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nzz9inYgFgaCcuRK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14442/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:52.364 [print] {
"resourceType": "Organization",
"id": "14442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:57.033+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:52.364 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:52.379 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:52.379 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nzz9inYgFgaCcuRK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14442/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:52.379 [print] {
"resourceType": "Organization",
"id": "14442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:57.033+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:52.379 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:52.984 [print] {
"resourceType": "Organization",
"id": "14442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:57.033+02:00",
"source": "#nzz9inYgFgaCcuRK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:53.605 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:54.233 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T09:59:58.299+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T09:59:58.299+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:54.233 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:54.866 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:54.866 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nmSlOqW0TaptSTX9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14443/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:54.866 [print] {
"resourceType": "Organization",
"id": "14443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:59.548+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:54.866 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:54.866 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:54.866 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nmSlOqW0TaptSTX9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14443/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 07:59:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 07:59:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:54.866 [print] {
"resourceType": "Organization",
"id": "14443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:59.548+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:54.866 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:55.587 [print] {
"resourceType": "Organization",
"id": "14443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T09:59:59.548+02:00",
"source": "#nmSlOqW0TaptSTX9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:56.239 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
09:59:56.834 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:00.902+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:00.902+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
09:59:56.834 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:57.473 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:57.473 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tjFcNTFqEbwcvuCo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14444/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:57.473 [print] {
"resourceType": "Organization",
"id": "14444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:02.163+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:57.473 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
09:59:57.489 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
09:59:57.489 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tjFcNTFqEbwcvuCo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14444/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
09:59:57.489 [print] {
"resourceType": "Organization",
"id": "14444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:02.163+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
09:59:57.489 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
09:59:58.090 [print] {
"resourceType": "Organization",
"id": "14444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:02.163+02:00",
"source": "#tjFcNTFqEbwcvuCo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
09:59:59.707 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:00.328 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:04.404+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:04.404+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:00.344 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:00.993 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:00.993 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ntM91FE2QosNpDxU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14445/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:00.993 [print] {
"resourceType": "Organization",
"id": "14445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:05.662+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:00.993 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:00.995 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:00.995 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ntM91FE2QosNpDxU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14445/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:00.995 [print] {
"resourceType": "Organization",
"id": "14445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:05.662+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:00.995 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:01.650 [print] {
"resourceType": "Organization",
"id": "14445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:05.662+02:00",
"source": "#ntM91FE2QosNpDxU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:02.277 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:02.930 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:06.973+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:06.973+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:02.930 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:03.647 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"367"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:03.647 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3nS2BTprV7ZPPWBO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14446/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:03.647 [print] {
"resourceType": "Organization",
"id": "14446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:08.326+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:03.647 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:03.647 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"367"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:03.647 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3nS2BTprV7ZPPWBO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14446/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:03.647 [print] {
"resourceType": "Organization",
"id": "14446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:08.326+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:03.647 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:04.268 [print] {
"resourceType": "Organization",
"id": "14446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:08.326+02:00",
"source": "#3nS2BTprV7ZPPWBO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:04.872 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:05.470 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:09.557+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:09.557+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:05.470 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:06.085 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:06.085 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YCab9J6VgwL2qLd0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14447/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:06.085 [print] {
"resourceType": "Organization",
"id": "14447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:10.781+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:06.085 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:06.101 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:06.101 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YCab9J6VgwL2qLd0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14447/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:06.101 [print] {
"resourceType": "Organization",
"id": "14447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:10.781+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:06.101 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:06.725 [print] {
"resourceType": "Organization",
"id": "14447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:10.781+02:00",
"source": "#YCab9J6VgwL2qLd0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:07.313 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:07.929 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:12.007+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:12.007+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:07.929 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:09.626 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:09.626 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LmJMahhIjmjxQMj8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14448/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:09.626 [print] {
"resourceType": "Organization",
"id": "14448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:14.306+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:09.626 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:09.626 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:09.626 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LmJMahhIjmjxQMj8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14448/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:09.626 [print] {
"resourceType": "Organization",
"id": "14448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:14.306+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:09.626 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:10.397 [print] {
"resourceType": "Organization",
"id": "14448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:14.306+02:00",
"source": "#LmJMahhIjmjxQMj8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:11.062 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:11.763 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:15.721+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:15.721+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:11.778 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:12.417 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"361"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:12.417 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XFWQihwegZiZdelM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14449/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:12.417 [print] {
"resourceType": "Organization",
"id": "14449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:17.093+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:12.417 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:12.417 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"361"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:12.417 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XFWQihwegZiZdelM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14449/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:12.417 [print] {
"resourceType": "Organization",
"id": "14449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:17.093+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:12.417 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:13.049 [print] {
"resourceType": "Organization",
"id": "14449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:17.093+02:00",
"source": "#XFWQihwegZiZdelM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:13.667 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:14.614 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:18.352+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:18.352+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:14.614 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:15.552 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:15.552 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f4Zvi4KjsnUmDHsn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14450/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:15.552 [print] {
"resourceType": "Organization",
"id": "14450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:20.186+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:15.552 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:15.552 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:15.552 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"f4Zvi4KjsnUmDHsn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14450/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:15.552 [print] {
"resourceType": "Organization",
"id": "14450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:20.186+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:15.552 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:17.182 [print] {
"resourceType": "Organization",
"id": "14450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:20.186+02:00",
"source": "#f4Zvi4KjsnUmDHsn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:17.837 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:18.458 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:22.528+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:22.528+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:18.458 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:19.044 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:19.044 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vekuSWEwAb0Ocg5z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14451/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:19.044 [print] {
"resourceType": "Organization",
"id": "14451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:23.720+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:19.044 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:19.044 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:19.044 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vekuSWEwAb0Ocg5z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14451/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:19.044 [print] {
"resourceType": "Organization",
"id": "14451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:23.720+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:19.044 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:19.691 [print] {
"resourceType": "Organization",
"id": "14451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:23.720+02:00",
"source": "#vekuSWEwAb0Ocg5z",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:20.318 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:20.947 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:24.998+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:24.998+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:20.949 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:21.600 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:21.600 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VVJGUxHWSrOVa44J"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14452/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:21.600 [print] {
"resourceType": "Organization",
"id": "14452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:26.281+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:21.600 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:21.600 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:21.600 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VVJGUxHWSrOVa44J"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14452/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:21.600 [print] {
"resourceType": "Organization",
"id": "14452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:26.281+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:21.600 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:22.238 [print] {
"resourceType": "Organization",
"id": "14452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:26.281+02:00",
"source": "#VVJGUxHWSrOVa44J",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:22.883 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:23.508 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:27.565+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:27.565+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:23.508 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:24.191 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:24.191 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DEQeVbLT3Jby4rqc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14453/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:24.191 [print] {
"resourceType": "Organization",
"id": "14453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:28.869+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:24.191 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:24.206 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:24.206 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DEQeVbLT3Jby4rqc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14453/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:24.206 [print] {
"resourceType": "Organization",
"id": "14453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:28.869+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:24.206 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:25.024 [print] {
"resourceType": "Organization",
"id": "14453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:28.869+02:00",
"source": "#DEQeVbLT3Jby4rqc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:25.641 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:27.263 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:30.327+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:30.327+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:27.263 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:27.964 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:27.964 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lJNYlboMrGaVdf7z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14454/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:27.964 [print] {
"resourceType": "Organization",
"id": "14454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:32.628+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:27.964 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:27.964 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:27.964 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lJNYlboMrGaVdf7z"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14454/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:27.964 [print] {
"resourceType": "Organization",
"id": "14454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:32.628+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:27.964 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:28.603 [print] {
"resourceType": "Organization",
"id": "14454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:32.628+02:00",
"source": "#lJNYlboMrGaVdf7z",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:29.196 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:29.804 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:33.882+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:33.882+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:29.806 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:30.398 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:30.398 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l6nT5CnJ5jGnSkVt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14455/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:30.398 [print] {
"resourceType": "Organization",
"id": "14455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:35.072+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:30.398 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:30.400 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:30.400 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"l6nT5CnJ5jGnSkVt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14455/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:30.400 [print] {
"resourceType": "Organization",
"id": "14455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:35.072+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:30.400 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:31.049 [print] {
"resourceType": "Organization",
"id": "14455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:35.072+02:00",
"source": "#l6nT5CnJ5jGnSkVt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:31.725 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:32.337 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:36.395+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:36.395+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:32.337 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:32.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"359"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:32.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yhvaprqPLJGdavjE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14456/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:32.994 [print] {
"resourceType": "Organization",
"id": "14456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:37.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:32.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:32.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"359"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:32.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"yhvaprqPLJGdavjE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14456/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:32.994 [print] {
"resourceType": "Organization",
"id": "14456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:37.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:32.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:33.598 [print] {
"resourceType": "Organization",
"id": "14456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:37.672+02:00",
"source": "#yhvaprqPLJGdavjE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:34.230 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:34.837 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:38.912+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:38.912+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:34.837 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:35.679 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:35.679 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fhMYGt2sJXfbDb0I"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14457/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:35.679 [print] {
"resourceType": "Organization",
"id": "14457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:40.361+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:35.679 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:35.681 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:35.681 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fhMYGt2sJXfbDb0I"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14457/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:35.681 [print] {
"resourceType": "Organization",
"id": "14457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:40.361+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:35.681 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:36.341 [print] {
"resourceType": "Organization",
"id": "14457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:40.361+02:00",
"source": "#fhMYGt2sJXfbDb0I",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:36.963 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:37.578 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:41.646+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:41.646+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:37.580 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:38.199 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:38.199 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"q36W1gRqmm1fg2e3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14458/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:38.199 [print] {
"resourceType": "Organization",
"id": "14458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:42.851+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:38.200 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:38.201 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:38.201 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"q36W1gRqmm1fg2e3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14458/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:38.201 [print] {
"resourceType": "Organization",
"id": "14458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:42.851+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:38.201 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:38.801 [print] {
"resourceType": "Organization",
"id": "14458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:42.851+02:00",
"source": "#q36W1gRqmm1fg2e3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:39.384 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:39.965 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:44.079+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:44.079+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:39.967 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:40.565 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"341"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:40.565 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MEy6grlxAOuZxxjC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14459/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:40.565 [print] {
"resourceType": "Organization",
"id": "14459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:45.237+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:40.565 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:40.565 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"341"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:40.565 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MEy6grlxAOuZxxjC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14459/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:40.565 [print] {
"resourceType": "Organization",
"id": "14459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:45.237+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:40.565 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:41.220 [print] {
"resourceType": "Organization",
"id": "14459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:45.237+02:00",
"source": "#MEy6grlxAOuZxxjC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:42.084 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:42.700 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:46.569+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:46.569+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:42.700 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:43.506 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:43.506 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LeIBGwkcrYddXtA1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14460/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:43.506 [print] {
"resourceType": "Organization",
"id": "14460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:48.188+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:43.506 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:43.506 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:43.506 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LeIBGwkcrYddXtA1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14460/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:43.506 [print] {
"resourceType": "Organization",
"id": "14460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:48.188+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:43.506 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:44.149 [print] {
"resourceType": "Organization",
"id": "14460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:48.188+02:00",
"source": "#LeIBGwkcrYddXtA1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:44.815 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:45.383 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:49.474+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:49.474+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:45.383 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:46.019 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:46.019 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iuBlzAGo2LioGtBZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14461/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:46.019 [print] {
"resourceType": "Organization",
"id": "14461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:50.706+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:46.019 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:46.019 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:46.019 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iuBlzAGo2LioGtBZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14461/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:46.019 [print] {
"resourceType": "Organization",
"id": "14461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:50.706+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:46.019 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:46.684 [print] {
"resourceType": "Organization",
"id": "14461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:50.706+02:00",
"source": "#iuBlzAGo2LioGtBZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:47.488 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:48.061 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:52.169+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:52.169+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:48.062 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:49.015 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:49.015 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lCQXYpD2UxnQ8qSj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14462/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:49.015 [print] {
"resourceType": "Organization",
"id": "14462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:53.699+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:49.015 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:49.015 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:49.015 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lCQXYpD2UxnQ8qSj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14462/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:49.015 [print] {
"resourceType": "Organization",
"id": "14462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:53.699+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:49.015 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:50.019 [print] {
"resourceType": "Organization",
"id": "14462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:53.699+02:00",
"source": "#lCQXYpD2UxnQ8qSj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:50.656 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:51.318 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:55.335+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:55.335+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:51.318 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:51.982 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:51.982 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5O8RklXOrE6toHmg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14463/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:51.982 [print] {
"resourceType": "Organization",
"id": "14463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:56.646+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:51.982 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:51.982 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:51.982 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5O8RklXOrE6toHmg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14463/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:51.982 [print] {
"resourceType": "Organization",
"id": "14463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:56.646+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:51.982 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:52.767 [print] {
"resourceType": "Organization",
"id": "14463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:56.646+02:00",
"source": "#5O8RklXOrE6toHmg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:53.438 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:54.078 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:00:58.096+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:00:58.096+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:54.078 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:54.664 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:54.664 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dbqFybcBw6o77k4S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14464/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:54.664 [print] {
"resourceType": "Organization",
"id": "14464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:59.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:54.664 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:54.679 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:54.679 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dbqFybcBw6o77k4S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14464/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:00:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:00:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:54.679 [print] {
"resourceType": "Organization",
"id": "14464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:59.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:54.679 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:55.288 [print] {
"resourceType": "Organization",
"id": "14464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:00:59.353+02:00",
"source": "#dbqFybcBw6o77k4S",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:55.932 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:00:56.550 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:00.605+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:00.605+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:00:56.551 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:57.529 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:57.529 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LrLtp8vMsBejbMK3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14465/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:57.529 [print] {
"resourceType": "Organization",
"id": "14465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:02.148+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:57.529 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:00:57.531 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:00:57.531 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LrLtp8vMsBejbMK3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14465/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:00:57.531 [print] {
"resourceType": "Organization",
"id": "14465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:02.148+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:00:57.531 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:00:58.683 [print] {
"resourceType": "Organization",
"id": "14465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:02.148+02:00",
"source": "#LrLtp8vMsBejbMK3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:00:59.448 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:00.088 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:04.110+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:04.110+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:00.088 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:00.709 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"322"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:00.709 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oipiiEDka9fd51za"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14466/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:00.709 [print] {
"resourceType": "Organization",
"id": "14466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:05.407+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:00.709 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:00.725 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"322"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:00.725 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oipiiEDka9fd51za"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14466/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:00.725 [print] {
"resourceType": "Organization",
"id": "14466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:05.407+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:00.725 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:01.358 [print] {
"resourceType": "Organization",
"id": "14466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:05.407+02:00",
"source": "#oipiiEDka9fd51za",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:01.961 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:02.575 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:06.632+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:06.632+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:02.575 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:03.207 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:03.207 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ndNBJTRSrzC2zzmW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14467/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:03.207 [print] {
"resourceType": "Organization",
"id": "14467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:07.893+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:03.207 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:03.207 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:03.207 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ndNBJTRSrzC2zzmW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14467/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:03.207 [print] {
"resourceType": "Organization",
"id": "14467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:07.893+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:03.207 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:03.813 [print] {
"resourceType": "Organization",
"id": "14467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:07.893+02:00",
"source": "#ndNBJTRSrzC2zzmW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:04.444 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:05.114 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:09.139+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:09.139+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:05.114 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:05.952 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:05.952 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"um3c8YETjhNE2w0t"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14468/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:05.952 [print] {
"resourceType": "Organization",
"id": "14468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:10.642+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:05.952 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:05.968 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:05.968 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"um3c8YETjhNE2w0t"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14468/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:05.968 [print] {
"resourceType": "Organization",
"id": "14468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:10.642+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:05.968 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:06.542 [print] {
"resourceType": "Organization",
"id": "14468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:10.642+02:00",
"source": "#um3c8YETjhNE2w0t",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:07.196 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:07.776 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:11.860+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:11.860+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:07.776 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:08.493 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:08.493 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7JLpU6dJG5PslGZV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14469/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:08.493 [print] {
"resourceType": "Organization",
"id": "14469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:13.168+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:08.493 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:08.493 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:08.493 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7JLpU6dJG5PslGZV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14469/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:08.493 [print] {
"resourceType": "Organization",
"id": "14469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:13.168+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:08.493 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:09.280 [print] {
"resourceType": "Organization",
"id": "14469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:13.168+02:00",
"source": "#7JLpU6dJG5PslGZV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:09.920 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:10.484 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:14.594+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:14.594+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:10.484 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:11.331 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:11.331 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHv0rAHfCet46czm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14470/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:11.331 [print] {
"resourceType": "Organization",
"id": "14470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:16.009+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:11.331 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:11.346 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:11.346 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHv0rAHfCet46czm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14470/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:11.346 [print] {
"resourceType": "Organization",
"id": "14470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:16.009+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:11.346 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:11.950 [print] {
"resourceType": "Organization",
"id": "14470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:16.009+02:00",
"source": "#lHv0rAHfCet46czm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:12.797 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:13.454 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:17.494+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:17.494+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:13.454 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:14.072 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:14.072 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Vv7YFpjGDHegepJ3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14471/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:14.072 [print] {
"resourceType": "Organization",
"id": "14471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:18.752+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:14.072 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:14.072 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:14.072 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Vv7YFpjGDHegepJ3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14471/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:14.072 [print] {
"resourceType": "Organization",
"id": "14471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:18.752+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:14.072 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:14.690 [print] {
"resourceType": "Organization",
"id": "14471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:18.752+02:00",
"source": "#Vv7YFpjGDHegepJ3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:15.329 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:16.177 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:20.015+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:20.015+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:16.177 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:16.826 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:16.826 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nzlW3ZfKUzIySlbF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14472/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:16.826 [print] {
"resourceType": "Organization",
"id": "14472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:21.497+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:16.826 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:16.826 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:16.826 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nzlW3ZfKUzIySlbF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14472/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:16.826 [print] {
"resourceType": "Organization",
"id": "14472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:21.497+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:16.826 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:17.416 [print] {
"resourceType": "Organization",
"id": "14472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:21.497+02:00",
"source": "#nzlW3ZfKUzIySlbF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:18.041 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:18.625 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:22.739+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:22.739+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:18.625 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:20.054 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:20.054 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"odmkA6iLL4QxAGSk"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14473/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:20.054 [print] {
"resourceType": "Organization",
"id": "14473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:24.740+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:20.054 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:20.054 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:20.054 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"odmkA6iLL4QxAGSk"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14473/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:20.054 [print] {
"resourceType": "Organization",
"id": "14473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:24.740+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:20.054 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:20.673 [print] {
"resourceType": "Organization",
"id": "14473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:24.740+02:00",
"source": "#odmkA6iLL4QxAGSk",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:21.291 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:21.860 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:25.979+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:25.979+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:21.860 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:22.470 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:22.471 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GOgtDZibz9TagGRF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14474/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:22.471 [print] {
"resourceType": "Organization",
"id": "14474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:27.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:22.471 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:22.472 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:22.472 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GOgtDZibz9TagGRF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14474/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:22.472 [print] {
"resourceType": "Organization",
"id": "14474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:27.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:22.472 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:23.155 [print] {
"resourceType": "Organization",
"id": "14474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:27.131+02:00",
"source": "#GOgtDZibz9TagGRF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:23.767 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:24.374 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:28.451+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:28.451+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:24.374 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:25.749 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:25.749 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fY00XHLeKchRhnKe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14475/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:25.749 [print] {
"resourceType": "Organization",
"id": "14475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:30.443+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:25.749 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:25.764 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:25.764 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fY00XHLeKchRhnKe"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14475/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:25.764 [print] {
"resourceType": "Organization",
"id": "14475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:30.443+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:25.764 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:26.409 [print] {
"resourceType": "Organization",
"id": "14475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:30.443+02:00",
"source": "#fY00XHLeKchRhnKe",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:27.051 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:27.693 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:31.728+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:31.728+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:27.694 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:28.268 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:28.268 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wwn16Kp7DqahCSfx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14476/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:28.268 [print] {
"resourceType": "Organization",
"id": "14476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:32.957+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:28.268 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:28.268 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:28.268 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wwn16Kp7DqahCSfx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14476/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:28.268 [print] {
"resourceType": "Organization",
"id": "14476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:32.957+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:28.268 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:28.887 [print] {
"resourceType": "Organization",
"id": "14476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:32.957+02:00",
"source": "#wwn16Kp7DqahCSfx",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:29.527 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:30.186 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:34.210+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:34.210+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:30.186 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:31.339 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:31.339 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3ATsyOz3EFH9kUG6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14477/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:31.339 [print] {
"resourceType": "Organization",
"id": "14477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:36.028+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:31.339 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:31.339 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:31.339 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3ATsyOz3EFH9kUG6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14477/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:31.339 [print] {
"resourceType": "Organization",
"id": "14477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:36.028+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:31.339 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:31.913 [print] {
"resourceType": "Organization",
"id": "14477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:36.028+02:00",
"source": "#3ATsyOz3EFH9kUG6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:32.764 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:33.615 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:37.451+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:37.451+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:33.615 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:34.563 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:34.563 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qQfckWMmu4QoOjEb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14478/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:34.563 [print] {
"resourceType": "Organization",
"id": "14478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:39.238+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:34.563 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:34.563 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:34.563 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qQfckWMmu4QoOjEb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14478/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:34.563 [print] {
"resourceType": "Organization",
"id": "14478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:39.238+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:34.563 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:35.550 [print] {
"resourceType": "Organization",
"id": "14478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:39.238+02:00",
"source": "#qQfckWMmu4QoOjEb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:37.177 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:38.852 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:41.864+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:41.864+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:38.852 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:40.525 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:40.525 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YpWYIZrQn9iJjuVX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14479/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:40.525 [print] {
"resourceType": "Organization",
"id": "14479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:45.208+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:40.525 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:40.525 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:40.525 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YpWYIZrQn9iJjuVX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14479/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:40.525 [print] {
"resourceType": "Organization",
"id": "14479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:45.208+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:40.525 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:41.590 [print] {
"resourceType": "Organization",
"id": "14479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:45.208+02:00",
"source": "#YpWYIZrQn9iJjuVX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:42.981 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:44.811 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:47.657+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:47.657+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:44.811 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:46.844 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:46.844 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Xbe1ATjzwRi7sA9c"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14480/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:46.844 [print] {
"resourceType": "Organization",
"id": "14480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:51.523+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:46.844 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:46.846 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:46.846 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Xbe1ATjzwRi7sA9c"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14480/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:46.846 [print] {
"resourceType": "Organization",
"id": "14480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:51.523+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:46.846 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:48.141 [print] {
"resourceType": "Organization",
"id": "14480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:51.523+02:00",
"source": "#Xbe1ATjzwRi7sA9c",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:49.365 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:01:51.966 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:01:54.011+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:01:54.011+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:01:51.967 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:54.829 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:54.829 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2rOS0a6uLDi7IceF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14481/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:54.829 [print] {
"resourceType": "Organization",
"id": "14481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:59.510+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:54.829 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:01:54.829 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:01:54.829 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2rOS0a6uLDi7IceF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14481/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:01:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:01:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:01:54.829 [print] {
"resourceType": "Organization",
"id": "14481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:59.510+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:01:54.829 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:01:56.623 [print] {
"resourceType": "Organization",
"id": "14481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:01:59.510+02:00",
"source": "#2rOS0a6uLDi7IceF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:01:59.238 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:01.264 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:03.900+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:03.900+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:01.265 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:04.098 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:04.098 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7P7xKetd6RvFH3TL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14482/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:04.098 [print] {
"resourceType": "Organization",
"id": "14482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:08.568+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:04.098 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:04.098 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:04.098 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7P7xKetd6RvFH3TL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14482/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:04.098 [print] {
"resourceType": "Organization",
"id": "14482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:08.568+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:04.098 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:06.629 [print] {
"resourceType": "Organization",
"id": "14482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:08.568+02:00",
"source": "#7P7xKetd6RvFH3TL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:13.378 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:14.419 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:18.057+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:18.057+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:14.420 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:19.099 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"328"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:19.099 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0IpFl59dV0gMPGt6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14483/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14483/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:19.099 [print] {
"resourceType": "Organization",
"id": "14483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:23.779+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:19.099 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:19.099 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"328"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:19.099 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0IpFl59dV0gMPGt6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14483/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14483/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:19.099 [print] {
"resourceType": "Organization",
"id": "14483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:23.779+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:19.099 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:20.248 [print] {
"resourceType": "Organization",
"id": "14483",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:23.779+02:00",
"source": "#0IpFl59dV0gMPGt6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:20.931 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:21.648 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:25.587+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:25.587+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:21.648 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:25.452 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"348"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:25.452 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7exBwa9moDXZXpjK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14484/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14484/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:25.452 [print] {
"resourceType": "Organization",
"id": "14484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:30.069+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:25.452 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:25.453 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"348"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:25.454 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7exBwa9moDXZXpjK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14484/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14484/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:25.454 [print] {
"resourceType": "Organization",
"id": "14484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:30.069+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:25.454 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:27.009 [print] {
"resourceType": "Organization",
"id": "14484",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:30.069+02:00",
"source": "#7exBwa9moDXZXpjK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:30.260 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:32.076 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:34.718+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:34.718+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:32.076 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:36.593 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:36.593 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tdpLvAKUI2oi4sZ9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14485/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14485/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:36.593 [print] {
"resourceType": "Organization",
"id": "14485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:41.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:36.593 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:36.593 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:36.593 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tdpLvAKUI2oi4sZ9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14485/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14485/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:36.593 [print] {
"resourceType": "Organization",
"id": "14485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:41.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:36.593 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:38.061 [print] {
"resourceType": "Organization",
"id": "14485",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:41.251+02:00",
"source": "#tdpLvAKUI2oi4sZ9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:40.122 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:41.581 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:44.787+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:44.787+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:41.581 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:43.578 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"316"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:43.578 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PT6sKc376BMmF56r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14486/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14486/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:43.578 [print] {
"resourceType": "Organization",
"id": "14486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:48.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:43.578 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:43.578 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"316"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:43.578 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"PT6sKc376BMmF56r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14486/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14486/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:43.578 [print] {
"resourceType": "Organization",
"id": "14486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:48.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:43.578 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:44.435 [print] {
"resourceType": "Organization",
"id": "14486",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:48.251+02:00",
"source": "#PT6sKc376BMmF56r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:45.737 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:46.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:50.415+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:50.415+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:46.714 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:47.464 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:47.464 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"a4F4szTuKqPDBbOI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14487/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14487/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:47.464 [print] {
"resourceType": "Organization",
"id": "14487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:52.108+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:47.464 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:47.481 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:47.481 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"a4F4szTuKqPDBbOI"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14487/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:02:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14487/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:02:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:47.481 [print] {
"resourceType": "Organization",
"id": "14487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:52.108+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:47.481 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:50.824 [print] {
"resourceType": "Organization",
"id": "14487",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:02:52.108+02:00",
"source": "#a4F4szTuKqPDBbOI",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:52.716 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:02:55.863 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:02:57.395+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:02:57.395+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:02:55.863 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:57.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:57.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"S35C9rLpQ0gnHLuJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14488/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14488/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:57.416 [print] {
"resourceType": "Organization",
"id": "14488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:02.076+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:57.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:02:57.432 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:02:57.432 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"S35C9rLpQ0gnHLuJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14488/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14488/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:02:57.432 [print] {
"resourceType": "Organization",
"id": "14488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:02.076+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:02:57.432 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:02:58.279 [print] {
"resourceType": "Organization",
"id": "14488",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:02.076+02:00",
"source": "#S35C9rLpQ0gnHLuJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:02:59.366 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:03:00.300 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:03:04.002+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:03:04.002+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:03:00.300 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:02.033 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:02.033 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zPCUpg4wUADMMQeY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14489/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14489/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:02.033 [print] {
"resourceType": "Organization",
"id": "14489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:06.694+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:02.033 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:02.033 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:02.033 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zPCUpg4wUADMMQeY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14489/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14489/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:02.033 [print] {
"resourceType": "Organization",
"id": "14489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:06.694+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:02.033 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:03:10.413 [print] {
"resourceType": "Organization",
"id": "14489",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:06.694+02:00",
"source": "#zPCUpg4wUADMMQeY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:03:12.163 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:03:14.639 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:03:16.849+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:03:16.849+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:03:14.639 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:15.445 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:15.445 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"taVVFhbn5YakRh2q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14490/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14490/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:15.445 [print] {
"resourceType": "Organization",
"id": "14490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:20.112+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:15.445 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:15.445 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:15.445 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"taVVFhbn5YakRh2q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14490/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14490/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:15.445 [print] {
"resourceType": "Organization",
"id": "14490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:20.112+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:15.445 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:03:26.838 [print] {
"resourceType": "Organization",
"id": "14490",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:20.112+02:00",
"source": "#taVVFhbn5YakRh2q",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:03:28.250 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:03:28.888 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:03:32.937+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:03:32.937+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:03:28.888 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:29.568 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:29.568 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0h4Qbx6idLFrTCSO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14491/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14491/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:29.568 [print] {
"resourceType": "Organization",
"id": "14491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:34.244+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:29.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:29.570 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:29.570 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0h4Qbx6idLFrTCSO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14491/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14491/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:34 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:29.570 [print] {
"resourceType": "Organization",
"id": "14491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:34.244+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:29.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:03:30.197 [print] {
"resourceType": "Organization",
"id": "14491",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:34.244+02:00",
"source": "#0h4Qbx6idLFrTCSO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:03:31.313 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:03:32.452 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:03:35.809+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:03:35.809+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:03:32.452 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:35.773 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:35.773 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mH5gAWgSn9whaut1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14492/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14492/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:35.773 [print] {
"resourceType": "Organization",
"id": "14492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:40.440+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:35.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:35.773 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:35.773 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mH5gAWgSn9whaut1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14492/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14492/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:35.773 [print] {
"resourceType": "Organization",
"id": "14492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:40.440+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:35.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:03:37.191 [print] {
"resourceType": "Organization",
"id": "14492",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:40.440+02:00",
"source": "#mH5gAWgSn9whaut1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:03:39.338 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:03:41.395 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:03:43.993+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:03:43.993+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:03:41.398 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:44.187 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:44.187 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XdlgJHkNt9Rrmc6s"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14493/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14493/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:44.189 [print] {
"resourceType": "Organization",
"id": "14493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:48.867+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:44.189 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:44.189 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:44.189 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XdlgJHkNt9Rrmc6s"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14493/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:03:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14493/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:03:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:44.189 [print] {
"resourceType": "Organization",
"id": "14493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:48.867+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:44.189 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:03:46.456 [print] {
"resourceType": "Organization",
"id": "14493",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:03:48.867+02:00",
"source": "#XdlgJHkNt9Rrmc6s",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:03:47.242 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:03:49.111 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:03:51.901+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:03:51.901+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:03:49.111 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:57.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:57.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6hiJfSVNoZxWyYA2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14494/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14494/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:57.672 [print] {
"resourceType": "Organization",
"id": "14494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:02.337+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:57.672 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:03:57.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:03:57.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6hiJfSVNoZxWyYA2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14494/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14494/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:03:57.672 [print] {
"resourceType": "Organization",
"id": "14494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:02.337+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:03:57.672 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:03:59.386 [print] {
"resourceType": "Organization",
"id": "14494",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:02.337+02:00",
"source": "#6hiJfSVNoZxWyYA2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:04:00.276 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:04:11.356 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:04:04.750+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:04:04.750+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:04:11.364 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:04:12.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:04:12.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ys8ouEJpJzVMVNCp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14495/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14495/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:04:12.548 [print] {
"resourceType": "Organization",
"id": "14495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:17.235+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:04:12.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:04:12.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:04:12.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ys8ouEJpJzVMVNCp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14495/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14495/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:04:12.548 [print] {
"resourceType": "Organization",
"id": "14495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:17.235+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:04:12.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:04:13.482 [print] {
"resourceType": "Organization",
"id": "14495",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:17.235+02:00",
"source": "#Ys8ouEJpJzVMVNCp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:04:15.271 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:04:16.373 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:04:19.954+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:04:19.954+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:04:16.373 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:04:17.210 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:04:17.210 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UF7bRV5iGya1K7sL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14496/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14496/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:04:17.210 [print] {
"resourceType": "Organization",
"id": "14496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:21.857+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:04:17.210 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:04:17.210 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:04:17.210 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UF7bRV5iGya1K7sL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14496/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14496/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:04:17.210 [print] {
"resourceType": "Organization",
"id": "14496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:21.857+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:04:17.210 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:04:21.309 [print] {
"resourceType": "Organization",
"id": "14496",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:21.857+02:00",
"source": "#UF7bRV5iGya1K7sL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:04:25.575 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:04:26.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:04:30.134+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:04:30.134+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:04:26.629 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:04:27.677 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:04:27.677 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dmN2CopusKOB7CgB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14497/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14497/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:04:27.677 [print] {
"resourceType": "Organization",
"id": "14497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:32.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:04:27.677 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:04:27.677 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:04:27.677 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dmN2CopusKOB7CgB"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14497/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:04:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14497/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:04:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:04:27.677 [print] {
"resourceType": "Organization",
"id": "14497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:32.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:04:27.677 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:04:29.250 [print] {
"resourceType": "Organization",
"id": "14497",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:04:32.353+02:00",
"source": "#dmN2CopusKOB7CgB",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:04:29.967 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:04:32.197 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:04:34.645+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:04:34.645+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:04:32.197 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PROVINCIAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA BURJASSOT - TORRES TORRES KM 9"
],
"city": "Bétera",
"state": "VALENCIA",
"country": "ES"
}
]
}
http call failed after 24086 milliseconds for url: https://psp-sp-fhir.prep.sanit.cineca.it/fhir/Organization karate/src/features/api/xaf.feature:19
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:04:56.283 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:02.565 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:02.565 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TmLa7A5jjCrmy5rv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14498/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14498/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:02.565 [print] {
"resourceType": "Organization",
"id": "14498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:07.230+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:02.565 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:02.568 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:02.574 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TmLa7A5jjCrmy5rv"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14498/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14498/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:02.575 [print] {
"resourceType": "Organization",
"id": "14498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:07.230+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:02.575 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:05:03.653 [print] {
"resourceType": "Organization",
"id": "14498",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:07.230+02:00",
"source": "#TmLa7A5jjCrmy5rv",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:05:05.810 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:05:06.575 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:05:10.465+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:05:10.465+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:05:06.577 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:08.776 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:08.776 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8cce9pceclWQCVLT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14499/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14499/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:08.776 [print] {
"resourceType": "Organization",
"id": "14499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:13.456+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:08.776 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:08.777 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:08.777 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8cce9pceclWQCVLT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14499/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14499/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:08.778 [print] {
"resourceType": "Organization",
"id": "14499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:13.456+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:08.778 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:05:19.693 [print] {
"resourceType": "Organization",
"id": "14499",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:13.456+02:00",
"source": "#8cce9pceclWQCVLT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
http call failed after 9576 milliseconds for url: https://psp-sp-fhir.prep.sanit.cineca.it/fhir/Organization/14499 karate/src/features/api/xaf.feature:37
Then
status 200
And
print response
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:05:29.269 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:31.460 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"365"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:31.460 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8xdIddCmhTWH4uxg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14500/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14500/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:31.460 [print] {
"resourceType": "Organization",
"id": "14500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:36.128+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:31.460 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:31.460 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"365"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:31.460 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"8xdIddCmhTWH4uxg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14500/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14500/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:31.460 [print] {
"resourceType": "Organization",
"id": "14500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:36.128+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:31.460 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:05:33.395 [print] {
"resourceType": "Organization",
"id": "14500",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:36.128+02:00",
"source": "#8xdIddCmhTWH4uxg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:05:34.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:05:37.596 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:05:38.889+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:05:38.889+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:05:37.596 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:38.583 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:38.583 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZWyTG1MSLeH6ijgr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14501/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14501/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:38.583 [print] {
"resourceType": "Organization",
"id": "14501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:43.242+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:38.583 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:38.583 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:38.583 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZWyTG1MSLeH6ijgr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14501/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14501/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:38.583 [print] {
"resourceType": "Organization",
"id": "14501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:43.242+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:38.583 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:05:39.671 [print] {
"resourceType": "Organization",
"id": "14501",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:43.242+02:00",
"source": "#ZWyTG1MSLeH6ijgr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:05:41.967 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:05:44.346 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:05:46.643+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:05:46.643+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:05:44.346 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:45.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:45.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5F8Mnuh2E4uvDEDM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14502/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14502/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:45.781 [print] {
"resourceType": "Organization",
"id": "14502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:50.429+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:45.781 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:45.784 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:45.784 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5F8Mnuh2E4uvDEDM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14502/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14502/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:45.784 [print] {
"resourceType": "Organization",
"id": "14502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:50.429+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:45.784 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:05:48.253 [print] {
"resourceType": "Organization",
"id": "14502",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:50.429+02:00",
"source": "#5F8Mnuh2E4uvDEDM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:05:50.297 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:05:51.989 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:05:54.971+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:05:54.971+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:05:51.989 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:53.889 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:53.889 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EoQF59gn16GHwCF8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14503/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14503/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:53.889 [print] {
"resourceType": "Organization",
"id": "14503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:58.560+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:53.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:05:53.889 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:05:53.889 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EoQF59gn16GHwCF8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14503/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:05:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14503/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:05:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:05:53.889 [print] {
"resourceType": "Organization",
"id": "14503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:58.560+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:05:53.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:05:55.583 [print] {
"resourceType": "Organization",
"id": "14503",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:05:58.560+02:00",
"source": "#EoQF59gn16GHwCF8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:05:57.082 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:06:00.761 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:06:01.757+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:06:01.757+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:06:00.761 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:01.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:01.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHI4RvgE8J0xplMU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14504/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14504/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:01.416 [print] {
"resourceType": "Organization",
"id": "14504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:06.088+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:01.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:01.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:01.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHI4RvgE8J0xplMU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14504/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14504/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:01.416 [print] {
"resourceType": "Organization",
"id": "14504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:06.088+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:01.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:06:02.164 [print] {
"resourceType": "Organization",
"id": "14504",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:06.088+02:00",
"source": "#lHI4RvgE8J0xplMU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:06:02.938 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:06:04.876 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:06:07.606+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:06:07.606+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:06:04.876 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:05.701 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:05.701 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GhjXle9mUC5xpdkq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14505/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14505/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:05.701 [print] {
"resourceType": "Organization",
"id": "14505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:10.347+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:05.701 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:05.701 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:05.701 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GhjXle9mUC5xpdkq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14505/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14505/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:05.701 [print] {
"resourceType": "Organization",
"id": "14505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:10.347+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:05.701 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:06:07.306 [print] {
"resourceType": "Organization",
"id": "14505",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:10.347+02:00",
"source": "#GhjXle9mUC5xpdkq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:06:08.062 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:06:09.575 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:06:12.747+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:06:12.747+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:06:09.575 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:12.790 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:12.790 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9Keut9rkzTg3bKdy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14506/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14506/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:12.790 [print] {
"resourceType": "Organization",
"id": "14506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:17.483+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:12.790 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:12.790 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:12.790 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9Keut9rkzTg3bKdy"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14506/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14506/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:12.790 [print] {
"resourceType": "Organization",
"id": "14506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:17.483+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:12.790 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:06:13.659 [print] {
"resourceType": "Organization",
"id": "14506",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:17.483+02:00",
"source": "#9Keut9rkzTg3bKdy",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:06:14.813 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:06:15.545 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:06:19.483+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:06:19.483+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:06:15.545 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:16.203 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:16.203 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Q2aje14XJ7xfgTWj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14507/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14507/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:16.203 [print] {
"resourceType": "Organization",
"id": "14507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:20.875+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:16.203 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:16.209 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:16.209 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Q2aje14XJ7xfgTWj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14507/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14507/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:16.209 [print] {
"resourceType": "Organization",
"id": "14507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:20.875+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:16.209 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:06:18.991 [print] {
"resourceType": "Organization",
"id": "14507",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:20.875+02:00",
"source": "#Q2aje14XJ7xfgTWj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:06:23.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:06:25.836 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:06:28.507+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:06:28.507+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:06:25.837 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:26.909 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:26.910 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3tnpI9SC6WgN7MbY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14508/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14508/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:26.910 [print] {
"resourceType": "Organization",
"id": "14508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:31.369+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:26.910 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:06:26.911 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:06:26.911 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3tnpI9SC6WgN7MbY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14508/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:06:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14508/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:06:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:06:26.911 [print] {
"resourceType": "Organization",
"id": "14508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:31.369+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:06:26.911 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:06:27.538 [print] {
"resourceType": "Organization",
"id": "14508",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:06:31.369+02:00",
"source": "#3tnpI9SC6WgN7MbY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:06:29.277 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:06:30.318 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:06:33.975+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:06:33.975+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:06:30.318 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
http call failed after 30020 milliseconds for url: https://psp-sp-fhir.prep.sanit.cineca.it/fhir/Organization karate/src/features/api/xaf.feature:19
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:00.338 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:01.795 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:01.795 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RSFfj45tGLszhudn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14509/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14509/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:01.795 [print] {
"resourceType": "Organization",
"id": "14509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:06.464+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:01.795 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:01.795 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:01.795 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RSFfj45tGLszhudn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14509/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14509/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:01.795 [print] {
"resourceType": "Organization",
"id": "14509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:06.464+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:01.795 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:02.426 [print] {
"resourceType": "Organization",
"id": "14509",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:06.464+02:00",
"source": "#RSFfj45tGLszhudn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:04.595 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:05.244 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:09.271+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:09.271+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:05.244 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:06.146 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:06.146 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oLaCzmjfUe1asz44"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14510/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14510/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:06.146 [print] {
"resourceType": "Organization",
"id": "14510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:10.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:06.146 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:06.146 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:06.146 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"oLaCzmjfUe1asz44"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14510/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14510/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:06.146 [print] {
"resourceType": "Organization",
"id": "14510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:10.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:06.146 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:08.105 [print] {
"resourceType": "Organization",
"id": "14510",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:10.840+02:00",
"source": "#oLaCzmjfUe1asz44",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:09.038 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:09.641 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:13.694+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:13.694+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:09.641 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:10.310 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"387"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:10.310 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g9fz5SMLvG5d9XT9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14511/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14511/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:10.310 [print] {
"resourceType": "Organization",
"id": "14511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:14.994+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:10.310 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:10.310 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"387"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:10.310 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g9fz5SMLvG5d9XT9"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14511/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14511/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:10.326 [print] {
"resourceType": "Organization",
"id": "14511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:14.994+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:10.326 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:11.393 [print] {
"resourceType": "Organization",
"id": "14511",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:14.994+02:00",
"source": "#g9fz5SMLvG5d9XT9",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:12.995 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:13.627 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:17.682+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:17.682+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:13.627 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:14.543 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:14.543 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aYVac0l0BD5vjazP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14512/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14512/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:14.543 [print] {
"resourceType": "Organization",
"id": "14512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:19.214+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:14.543 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:14.543 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:14.543 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aYVac0l0BD5vjazP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14512/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14512/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:14.543 [print] {
"resourceType": "Organization",
"id": "14512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:19.214+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:14.543 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:16.422 [print] {
"resourceType": "Organization",
"id": "14512",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:19.214+02:00",
"source": "#aYVac0l0BD5vjazP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:23.271 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:25.256 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:27.961+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:27.961+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:25.256 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:26.079 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:26.079 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"84w1hVeSlzIDPfOu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14513/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14513/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:26.079 [print] {
"resourceType": "Organization",
"id": "14513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:30.771+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:26.079 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:26.079 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:26.079 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"84w1hVeSlzIDPfOu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14513/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14513/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:26.079 [print] {
"resourceType": "Organization",
"id": "14513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:30.771+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:26.079 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:31.814 [print] {
"resourceType": "Organization",
"id": "14513",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:30.771+02:00",
"source": "#84w1hVeSlzIDPfOu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:32.493 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:33.848 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:37.184+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:37.184+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:33.848 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:34.503 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:34.503 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cqcj0wyDuQcB3D41"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14514/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14514/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:34.503 [print] {
"resourceType": "Organization",
"id": "14514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:39.179+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:34.503 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:34.503 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:34.503 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cqcj0wyDuQcB3D41"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14514/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14514/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:34.503 [print] {
"resourceType": "Organization",
"id": "14514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:39.179+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:34.503 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:35.137 [print] {
"resourceType": "Organization",
"id": "14514",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:39.179+02:00",
"source": "#cqcj0wyDuQcB3D41",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:36.750 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:38.809 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:41.433+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:41.433+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:38.824 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:39.441 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:39.441 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"upJADSN0LESWJ6nV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14515/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14515/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:39.441 [print] {
"resourceType": "Organization",
"id": "14515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:44.130+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:39.441 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:39.441 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:39.441 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"upJADSN0LESWJ6nV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14515/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14515/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:39.441 [print] {
"resourceType": "Organization",
"id": "14515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:44.130+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:39.441 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:40.291 [print] {
"resourceType": "Organization",
"id": "14515",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:44.130+02:00",
"source": "#upJADSN0LESWJ6nV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:50.746 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:52.087 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:07:55.420+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:07:55.420+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:52.088 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:53.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:53.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OR6wzV57YnTzrLhS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14516/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14516/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:53.742 [print] {
"resourceType": "Organization",
"id": "14516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:58.413+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:53.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:53.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:53.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OR6wzV57YnTzrLhS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14516/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:07:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14516/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:07:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:53.742 [print] {
"resourceType": "Organization",
"id": "14516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:58.413+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:53.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:54.395 [print] {
"resourceType": "Organization",
"id": "14516",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:07:58.413+02:00",
"source": "#OR6wzV57YnTzrLhS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:07:56.973 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:07:57.995 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:08:01.654+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:08:01.654+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:07:57.995 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:58.585 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:58.585 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7ul1SDuCjWwUeyUr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14517/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:08:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14517/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:08:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:58.585 [print] {
"resourceType": "Organization",
"id": "14517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:03.272+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:58.585 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:07:58.601 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:07:58.601 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7ul1SDuCjWwUeyUr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14517/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:08:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14517/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:08:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:07:58.601 [print] {
"resourceType": "Organization",
"id": "14517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:03.272+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:07:58.601 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:07:59.187 [print] {
"resourceType": "Organization",
"id": "14517",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:03.272+02:00",
"source": "#7ul1SDuCjWwUeyUr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:08:00.802 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:08:02.420 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:08:05.493+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:08:05.493+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:08:02.420 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:08:04.076 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:08:04.076 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HdCVRXiv2rIQtevr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14518/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:08:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14518/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:08:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:08:04.076 [print] {
"resourceType": "Organization",
"id": "14518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:08.758+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:08:04.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:08:04.076 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:08:04.076 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"HdCVRXiv2rIQtevr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14518/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:08:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14518/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:08:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:08:04.076 [print] {
"resourceType": "Organization",
"id": "14518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:08.758+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:08:04.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:08:04.687 [print] {
"resourceType": "Organization",
"id": "14518",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:08.758+02:00",
"source": "#HdCVRXiv2rIQtevr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:08:05.524 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:08:06.686 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:08:10.190+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:08:10.190+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:08:06.686 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:08:07.572 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:08:07.572 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lnDD7baetsMRSo6u"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14519/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:08:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14519/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:08:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:08:07.572 [print] {
"resourceType": "Organization",
"id": "14519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:12.034+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:08:07.572 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:08:07.572 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:08:07.572 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lnDD7baetsMRSo6u"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14519/_history/1"
],
"Last-Modified": [
"Tue, 13 Sep 2022 08:08:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/14519/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Tue, 13 Sep 2022 08:08:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:08:07.572 [print] {
"resourceType": "Organization",
"id": "14519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:12.034+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:08:07.572 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:08:08.196 [print] {
"resourceType": "Organization",
"id": "14519",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-13T10:08:12.034+02:00",
"source": "#lnDD7baetsMRSo6u",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:08:08.797 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:08:09.747 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-13T10:08:13.484+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-13T10:08:13.484+02:00"
}
]
}